MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Memory::DynamicStorage< T > Struct Template Reference

Runtime-resizable storage using std::vector. More...

#include <RingBuffer.hpp>

+ Collaboration diagram for MayaFlux::Memory::DynamicStorage< T >:

Public Types

using storage_type = std::vector< T >
 

Public Member Functions

 DynamicStorage (size_t initial_capacity=64)
 
size_t capacity () const noexcept
 
void resize (size_t new_capacity)
 

Public Attributes

storage_type buffer
 

Static Public Attributes

static constexpr bool is_resizable = true
 

Detailed Description

template<typename T>
struct MayaFlux::Memory::DynamicStorage< T >

Runtime-resizable storage using std::vector.

Provides dynamic capacity management for non-realtime contexts where buffer size cannot be determined at compile time. Supports resize() operations but may trigger heap allocations.

Template Parameters
TElement type

Memory Layout:

  • Heap-allocated std::vector<T>
  • Resizable via resize() method
  • May reallocate on capacity change

Use Cases:

  • Variable-length delay lines in non-realtime contexts
  • Recording buffers with unknown duration
  • Feedback processors with modulated delay times
  • Non-audio processing chains

Definition at line 85 of file RingBuffer.hpp.


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