WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::util::MallocAllocator Class Reference

#include <wpi/util/AllocatorBase.hpp>

Inheritance diagram for wpi::util::MallocAllocator:
wpi::util::AllocatorBase< MallocAllocator >

Public Member Functions

void Reset ()
LLVM_ATTRIBUTE_RETURNS_NONNULL void * Allocate (size_t Size, size_t Alignment)
void Deallocate (const void *Ptr, size_t Size, size_t Alignment)
void PrintStats () const
Public Member Functions inherited from wpi::util::AllocatorBase< MallocAllocator >
void * Allocate (size_t Size, size_t Alignment)
 Allocate Size bytes of Alignment aligned memory.
void Deallocate (const void *Ptr, size_t Size, size_t Alignment)
 Deallocate Ptr to Size bytes of memory allocated by this allocator.

Member Function Documentation

◆ Allocate()

LLVM_ATTRIBUTE_RETURNS_NONNULL void * wpi::util::MallocAllocator::Allocate ( size_t Size,
size_t Alignment )
inline

◆ Deallocate()

void wpi::util::MallocAllocator::Deallocate ( const void * Ptr,
size_t Size,
size_t Alignment )
inline

◆ PrintStats()

void wpi::util::MallocAllocator::PrintStats ( ) const
inline

◆ Reset()

void wpi::util::MallocAllocator::Reset ( )
inline

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