std::core::mem::vm

Public

Types

NameDescription
VirtualMemoryVirtualMemory is an abstraction for working with an allocated virtual memory area. It will invoke vm:: functions...
VirtualMemoryAccess

Functions

NameDescription
vm::mmap_fileMap a portion of an already-opened file into memory.
vm::protectChange the access protection of a region in memory. The region must be page aligned.
vm::aligned_alloc_size
vm::releaseRelease memory allocated with "alloc".
vm::allocAllocate virtual memory, size is rounded up to platform granularity (Win32) / page size (Posix).
vm::commitMakes a region of memory available that was previously retrieved using 'alloc'. This is necessary on Win32,...
vm::virtual_allocCreate a VirtualMemory using
vm::decommitNotifies that the memory in the region can be released back to the OS. On Win32 this decommits the region,...
vm::destroyReleases the memory region

Private

Functions

NameDescription
vm::to_win32
vm::to_posix