WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
virtual_memory.hpp File Reference

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

#include <cstddef>
#include <type_traits>
#include "detail/debug_helpers.hpp"
#include "detail/utility.hpp"
#include "config.hpp"

Go to the source code of this file.

Classes

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

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::memory
 Memory namespace.
 
namespace  wpi::memory::detail
 

Functions

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

Variables

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

Detailed Description

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