24 #ifndef PXR_BASE_ARCH_VIRTUAL_MEMORY_H 25 #define PXR_BASE_ARCH_VIRTUAL_MEMORY_H 32 #include "pxr/base/arch/api.h" 36 PXR_NAMESPACE_OPEN_SCOPE
65 ArchProtectReadWriteCopy
79 PXR_NAMESPACE_CLOSE_SCOPE
81 #endif // PXR_BASE_ARCH_VIRTUAL_MEMORY_H
ARCH_API bool ArchCommitVirtualMemoryRange(void *start, size_t numBytes)
Make the range of numBytes bytes starting at start available for reading and writing.
ARCH_API bool ArchSetMemoryProtection(void const *start, size_t numBytes, ArchMemoryProtection protection)
Change the memory protection on the pages containing start and start + numBytes to protection.
ARCH_API bool ArchFreeVirtualMemory(void *start, size_t numBytes)
Return memory obtained with ArchReserveVirtualMemory() to the system.
ArchMemoryProtection
Memory protection options, see ArchSetMemoryProtection().
ARCH_API void * ArchReserveVirtualMemory(size_t numBytes)
Reserve numBytes bytes of virtual memory.