SplitScript reference / Module / pointerSize

Module.pointerSize

Method

Module.pointerSize() -> PointerSize!

Determines the pointer width of a Windows PE module.

The DOS, PE, and optional-header signatures are validated before the PE32 or PE32+ pointer width is returned. Unsupported binary formats and failed reads are returned as errors.

Effects: reads process memory, requires an attached process

Runtime behavior: available while a process is attached, except in onDetach; synchronous

Examples

Inspect a module's pointer width

let executable = await process.mainModule()
let pointerSize = retry executable.pointerSize()