Files
Cpp2IL/LibCpp2IL/Metadata/Il2CppInterfaceOffset.cs
Sam Byass 17bcb005f7 Core+Lib: Stop using Il2CppTypeReflectionData in most places, it's not a good data type.
Also fixes silent coercion of SZArray types to Array[1] in various places in analysis
2026-07-25 16:21:39 +01:00

23 lines
581 B
C#

using LibCpp2IL.BinaryStructures;
namespace LibCpp2IL.Metadata;
public class Il2CppInterfaceOffset : ReadableClass
{
public Il2CppVariableWidthIndex<Il2CppType> typeIndex;
public int offset;
public Il2CppType Type => OwningContext.Binary.GetType(typeIndex);
public override string ToString()
{
return $"InterfaceOffsetPair({typeIndex}/{Type} => {offset})";
}
public override void Read(ClassReadingBinaryReader reader)
{
typeIndex = Il2CppVariableWidthIndex<Il2CppType>.Read(reader);
offset = reader.ReadInt32();
}
}