WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::memory::detail::joint_stack Class Reference

#include <wpi/memory/joint_allocator.hpp>

Public Member Functions

 joint_stack (void *mem, std::size_t cap) noexcept
 
void * allocate (std::size_t size, std::size_t alignment) noexcept
 
bool bump (std::size_t offset) noexcept
 
char * top () noexcept
 
const char * top () const noexcept
 
void unwind (void *ptr) noexcept
 
std::size_t capacity (const char *mem) const noexcept
 
std::size_t capacity_left () const noexcept
 
std::size_t capacity_used (const char *mem) const noexcept
 

Constructor & Destructor Documentation

◆ joint_stack()

wpi::memory::detail::joint_stack::joint_stack ( void * mem,
std::size_t cap )
inlinenoexcept

Member Function Documentation

◆ allocate()

void * wpi::memory::detail::joint_stack::allocate ( std::size_t size,
std::size_t alignment )
inlinenoexcept

◆ bump()

bool wpi::memory::detail::joint_stack::bump ( std::size_t offset)
inlinenoexcept

◆ capacity()

std::size_t wpi::memory::detail::joint_stack::capacity ( const char * mem) const
inlinenoexcept

◆ capacity_left()

std::size_t wpi::memory::detail::joint_stack::capacity_left ( ) const
inlinenoexcept

◆ capacity_used()

std::size_t wpi::memory::detail::joint_stack::capacity_used ( const char * mem) const
inlinenoexcept

◆ top() [1/2]

const char * wpi::memory::detail::joint_stack::top ( ) const
inlinenoexcept

◆ top() [2/2]

char * wpi::memory::detail::joint_stack::top ( )
inlinenoexcept

◆ unwind()

void wpi::memory::detail::joint_stack::unwind ( void * ptr)
inlinenoexcept

The documentation for this class was generated from the following file: