7#ifndef PXR_BASE_ARCH_VIRTUAL_MEMORY_H
8#define PXR_BASE_ARCH_VIRTUAL_MEMORY_H
15#include "pxr/base/arch/api.h"
19PXR_NAMESPACE_OPEN_SCOPE
48 ArchProtectReadWriteCopy
62PXR_NAMESPACE_CLOSE_SCOPE
ARCH_API 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().
ARCH_API bool ArchFreeVirtualMemory(void *start, size_t numBytes)
Return memory obtained with ArchReserveVirtualMemory() to the system.
ARCH_API void * ArchReserveVirtualMemory(size_t numBytes)
Reserve numBytes bytes of virtual memory.
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.