Documentation of memory

( foonathan/memory)

virtual_memory.hpp File Reference

Detailed Description

Virtual memory api and (low-level) allocator classes.

Classes

class  virtual_memory_allocator
 A stateless RawAllocator that allocates memory using the virtual memory allocation functions. More...
 
class  virtual_block_allocator
 A BlockAllocator that reserves virtual memory and commits it part by part. More...
 

Variables

const std::size_t virtual_memory_page_size
 The page size of the virtual memory. More...
 

Functions

void * virtual_memory_reserve (std::size_t no_pages) noexcept
 Reserves virtual memory. More...
 
void virtual_memory_release (void *pages, std::size_t no_pages) noexcept
 Releases reserved virtual memory. More...
 
void * virtual_memory_commit (void *memory, std::size_t no_pages) noexcept
 Commits reserved virtual memory. More...
 
void virtual_memory_decommit (void *memory, std::size_t no_pages) noexcept
 Decommits commited virtual memory. More...