Skip to content

VM allocate and dealloacate

Bennett Blodinger edited this page Mar 18, 2017 · 1 revision

Allocation and Deallocation

  • vm.allocate(numberOfBytes=...)
  • vm.deallocate(memoryAddress)

Allocates and deallocates memory inside the process. vm.allocate() will return a memory address to newly allocated memory. The numberOfBytes parameter is optional and defaults to target's page size.

Raises bitslicer.VirtualMemoryError if memory could not be allocated or deallocated inside the process.