SplitScript reference / Process / memoryRanges
Process.memoryRanges
Method
Process.memoryRanges() -> [MemoryRange]
Collects a snapshot of the process's mapped memory ranges.
The returned GC-owned snapshot is ordered by the host's range index and remains usable after later host mapping changes.
Effects: allocates, reads process memory, requires an attached process
Runtime behavior: available while a process is attached, except in onDetach; synchronous
Examples
Inspect readable executable mappings
let ranges = process.memoryRanges()
for range in ranges {
if range.readable && range.executable {
debug print(`executable mapping at {range.address}`)
}
}