struct
Lapis::Debugger::GodotObjectHeader
- Lapis::Debugger::GodotObjectHeader
- Struct
- Value
- Object
Overview
Represents the binary header of a Godot Object in memory. Standard GDExtension layout on 64-bit architectures: Offset 0x00: VTable pointer (8 bytes) Offset 0x08: 64-bit monotonic ObjectID (8 bytes) Offset 0x10: user_data pointer (Crystal wrapper / Extension instance) (8 bytes) Offset 0x18: user_data_type (8 bytes)
Included Modules
- JSON::Serializable
Defined in:
libgodot/debugger/r2_godot_types.crConstructors
-
.from_bytes(bytes : Bytes, is_alive : Bool = true, class_name : String | Nil = nil) : GodotObjectHeader
Reads an object header from a 32-byte memory slice.
- .new(vtable : UInt64, instance_id : UInt64, user_data : UInt64 = 0_u64, user_data_type : UInt64 = 0_u64, is_alive : Bool = true, class_name : String | Nil = nil)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
Instance Method Summary
- #class_name : String | Nil
- #instance_id : UInt64
- #is_alive : Bool
- #user_data : UInt64
- #user_data_type : UInt64
- #vtable : UInt64
Constructor Detail
def self.from_bytes(bytes : Bytes, is_alive : Bool = true, class_name : String | Nil = nil) : GodotObjectHeader
#
Reads an object header from a 32-byte memory slice.
def self.new(vtable : UInt64, instance_id : UInt64, user_data : UInt64 = 0_u64, user_data_type : UInt64 = 0_u64, is_alive : Bool = true, class_name : String | Nil = nil)
#