pub struct ImageDefinition {
pub name_index: u32,
pub assembly_index: i32,
pub type_start: i32,
pub type_count: u32,
pub exported_type_start: i32,
pub exported_type_count: u32,
pub entry_point_index: i32,
pub token: u32,
pub custom_attribute_start: i32,
pub custom_attribute_count: u32,
}Expand description
Il2CppImageDefinition: one image (module) of the game, e.g.
Assembly-CSharp.dll, and the range of type definitions it owns.
Fields§
§name_index: u32The image’s file name, e.g. Assembly-CSharp.dll. Index into the string pool; read it with Metadata::string.
assembly_index: i32Index into Metadata::assemblies of the assembly this image belongs to.
type_start: i32Index into Metadata::type_definitions of this image’s first type.
v39 doesn’t store it; it’s computed as a running total, since types are laid out in image order.
type_count: u32How many type definitions the image owns, from type_start on.
exported_type_start: i32Index into the exported_type_definitions section of this image’s first exported type.
exported_type_count: u32How many exported types (e.g. type forwarders) the image has.
entry_point_index: i32Index into Metadata::methods of the entry point (Main), or -1.
token: u32The image’s module metadata token.
custom_attribute_start: i32Index into the attribute_data_range section of this image’s first attribute range.
custom_attribute_count: u32How many attribute ranges the image has. Always 0 for v39, which doesn’t store it.