![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Arena implementation that just fails all allocations. Can be used with containers that have embedded capacity and arena, but we want them to use only embedded capacity. More...
#include <roc_core/noop_arena.h>
Public Member Functions | |
virtual void * | allocate (size_t size) |
Allocate memory no-op. | |
virtual void | deallocate (void *ptr) |
Deallocate memory no-op. | |
virtual size_t | compute_allocated_size (size_t size) const |
Compute allocated size no-op. | |
virtual size_t | allocated_size (void *ptr) const |
Allocated size given pointer no-op. | |
![]() | |
template<class T > | |
void | destroy_object (T &object) |
Destroy object and deallocate its memory. | |
Arena implementation that just fails all allocations. Can be used with containers that have embedded capacity and arena, but we want them to use only embedded capacity.
Definition at line 24 of file noop_arena.h.
Deallocate memory no-op.
Implements roc::core::IArena.