Direct control over memory page protection.

Static methods

staticgetPageSize():Int

Retrieves the system's memory page size.

staticprotect(buffer:NativeBuffer, flags:Int):Bool

Changes the access protection for a NativeBuffer.

staticinlineprotectAddress(address:Int64, length:Int, flags:Int):Bool

Changes the access protection for a region of memory by address.

Parameters:

address

Raw memory address.

length

Size of the region in bytes.

flags

Protection flags (bitmask of MemProt values).

Returns:

True if successful.