MEMORY
Memory
Low-level memory helpers. Addresses are plain integers; invalid addresses return nil instead of crashing.
- Add: Adds an offset to an address.
- Alloc: Allocates a block of memory and returns its address.
- Call: Calls a function at the given address with arguments.
- Free: Frees a block allocated with Alloc.
- GetProc: Resolves an exported symbol inside a module.
- Hook: Redirects execution at an address to a Lua callback.
- Module: Returns the base address of a loaded module.
- Nop: Fills a range with no-operation instructions.
- Patch: Writes raw bytes at the given address.
- Read (primitives): Reads a primitive value from memory.
- ReadBytes: Reads a byte string from memory.
- ReadStr: Reads a null-terminated string from memory.
- Scan: Scans memory for a byte pattern.
- Unhook: Removes a hook installed with Hook.
- Valid: Checks whether an address is readable.
- Write (primitives): Writes a primitive value to memory.
- WriteBytes: Writes a byte string to memory.