SplitScript reference / MemoryPath / dereference
MemoryPath.dereference
Method
MemoryPath.dereference(offset: i64) -> MemoryPath
Appends one pointer dereference and a new final offset.
The current final offset becomes the address of the next native pointer read. The supplied offset is then applied to that pointer without another read. The original immutable path is not changed.
Parameters
offset: Signed final offset to apply after reading the current path's pointer.
Effects: allocates, mutates the receiver
Runtime behavior: available everywhere; synchronous
Examples
Follow a singleton to one of its fields
let singleton = 0x1000.memoryPath([], 0x20, PointerSize.Bit64)
let health = singleton.dereference(0x18)