mirror of
https://github.com/AssetRipper/Cpp2IL.git
synced 2026-11-13 20:05:45 -10:00
20 lines
827 B
C#
20 lines
827 B
C#
using LibCpp2IL.BinaryStructures;
|
|
|
|
namespace LibCpp2IL.Metadata
|
|
{
|
|
public class Il2CppGenericMethodSpecOnType : ReadableClass
|
|
{
|
|
public Il2CppVariableWidthIndex<Il2CppMethodDefinition> methodDefinitionIndex;
|
|
public Il2CppVariableWidthIndex<Il2CppGenericInst> methodIndexIndex;
|
|
|
|
public Il2CppMethodDefinition MethodDefinition => OwningContext.Metadata.GetMethodDefinitionFromIndex(methodDefinitionIndex);
|
|
public Il2CppGenericInst GenericMethodInst => OwningContext.Binary.GetGenericInst(methodIndexIndex);
|
|
|
|
public override void Read(ClassReadingBinaryReader reader)
|
|
{
|
|
methodDefinitionIndex = Il2CppVariableWidthIndex<Il2CppMethodDefinition>.Read(reader);
|
|
methodIndexIndex = Il2CppVariableWidthIndex<Il2CppGenericInst>.Read(reader);
|
|
}
|
|
}
|
|
}
|