struct Lapis::Debugger::GodotObjectHeader

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

Defined in:

libgodot/debugger/r2_godot_types.cr

Constructors

Instance Method Summary

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) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

Instance Method Detail

def class_name : String | Nil #

def instance_id : UInt64 #

def is_alive : Bool #

def user_data : UInt64 #

def user_data_type : UInt64 #

def vtable : UInt64 #