8#ifndef PXR_ARCH_VIRTUAL_MEMORY_H
9#define PXR_ARCH_VIRTUAL_MEMORY_H
14#include "pxr/arch/pxr.h"
15#include "pxr/arch/api.h"
19ARCH_NAMESPACE_OPEN_SCOPE
62ARCH_NAMESPACE_CLOSE_SCOPE
bool ArchSetMemoryProtection(void const *start, size_t numBytes, ArchMemoryProtection protection)
Change the memory protection on the pages containing start and start + numBytes to protection.
bool ArchFreeVirtualMemory(void *start, size_t numBytes)
Return memory obtained with ArchReserveVirtualMemory() to the system.
void * ArchReserveVirtualMemory(size_t numBytes)
Reserve numBytes bytes of virtual memory.
bool ArchCommitVirtualMemoryRange(void *start, size_t numBytes)
Make the range of numBytes bytes starting at start available for reading and writing.
ArchMemoryProtection
Memory protection options, see ArchSetMemoryProtection().
Definition virtualMemory.h:44
@ ArchProtectNoAccess
Definition virtualMemory.h:45
@ ArchProtectReadOnly
Definition virtualMemory.h:46
@ ArchProtectReadWriteCopy
Definition virtualMemory.h:48
@ ArchProtectReadWrite
Definition virtualMemory.h:47