mirror of
https://github.com/AssetRipper/Cpp2IL.git
synced 2026-11-13 20:05:45 -10:00
Also fixes silent coercion of SZArray types to Array[1] in various places in analysis
23 lines
581 B
C#
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();
|
|
}
|
|
}
|