Files
Cpp2IL/LibCpp2IL/Metadata/Il2CppInterfaceOffset.cs

23 lines
597 B
C#

using LibCpp2IL.Reflection;
namespace LibCpp2IL.Metadata;
public class Il2CppInterfaceOffset : ReadableClass
{
public int typeIndex;
public int offset;
public Il2CppTypeReflectionData Type => LibCpp2ILUtils.GetTypeReflectionData(LibCpp2IlMain.Binary!.GetType(typeIndex));
public override string ToString()
{
return $"InterfaceOffsetPair({typeIndex}/{Type.ToString() ?? "unknown type"} => {offset})";
}
public override void Read(ClassReadingBinaryReader reader)
{
typeIndex = reader.ReadTypeIndex();
offset = reader.ReadInt32();
}
}