|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
Compile-time fixed-capacity storage using std::array. More...
#include <RingBuffer.hpp>
Collaboration diagram for MayaFlux::Memory::FixedStorage< T, Capacity >:Public Types | |
| using | storage_type = std::array< T, Capacity > |
Public Member Functions | |
| constexpr size_t | capacity () const noexcept |
Public Attributes | |
| storage_type | buffer {} |
Static Public Attributes | |
| static constexpr size_t | capacity_value = Capacity |
| static constexpr bool | is_resizable = false |
Compile-time fixed-capacity storage using std::array.
Provides zero-overhead compile-time buffer allocation with capacity known at compile time. Required for lock-free contexts and real-time audio processing where dynamic allocation is forbidden.
Capacity must be a power of 2 for efficient modulo operations using bitwise AND instead of division.
| T | Element type |
| Capacity | Buffer size (must be power of 2) |
Memory Layout:
Use Cases:
Definition at line 49 of file RingBuffer.hpp.