SplitScript reference / Module / size

Module.size

field

Module.size: u64

Returns the mapped module size.

The value is the host-reported extent of the loaded image in bytes. It can be paired with address to constrain scanning or validate a relative offset before reading memory.

Examples

Read a discovered module's mapped size

let executable = await process.mainModule()
let mappedBytes = executable.size