DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::detail::AllocationAccount Struct Referencefinal

#include <AccountedAllocator.h>

Public Member Functions

void charge (std::size_t bytes) const
 

Public Attributes

void * context = nullptr
 
void(* request )(void *, std::size_t) = nullptr
 
void *(* allocate )(void *, std::size_t, std::size_t) = nullptr
 
void(* deallocate )(void *, void *, std::size_t, std::size_t) = nullptr
 

Detailed Description

Definition at line 19 of file AccountedAllocator.h.

Member Function Documentation

◆ charge()

void dspark::detail::AllocationAccount::charge ( std::size_t  bytes) const
inline

Definition at line 26 of file AccountedAllocator.h.

Member Data Documentation

◆ allocate

void *(* dspark::detail::AllocationAccount::allocate) (void *, std::size_t, std::size_t) = nullptr

Definition at line 23 of file AccountedAllocator.h.

◆ context

void* dspark::detail::AllocationAccount::context = nullptr

Definition at line 21 of file AccountedAllocator.h.

◆ deallocate

void(* dspark::detail::AllocationAccount::deallocate) (void *, void *, std::size_t, std::size_t) = nullptr

Definition at line 24 of file AccountedAllocator.h.

◆ request

void(* dspark::detail::AllocationAccount::request) (void *, std::size_t) = nullptr

Definition at line 22 of file AccountedAllocator.h.


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