Function: prot

Change the protection of a block of memory.

This function is unsafe 🐉

Parameters

  • address: int - the base address to change the protection on.
  • size: int - how many bytes from the base address to change.
  • prot: Prot - the protection flag.

Exceptions

If changing the protection failed.

Return Value

The old Prot.