15template <
typename SampleT>
35 auto findLargerPowerOfTwo = [](int32_t number) {
37 while (powerOf2 < number)
64 void write(
int offset,
const SampleT& sample)
74 const SampleT&
read(
int offset)
const
87 template <
typename fnc>
99 f(firstIndex, 0, n_to_end);
100 f(0, n_to_end, n - n_to_end);
105 void writeBlock(
int startOffset,
int n,
const SampleT* sourceBlock)
133 void readBlock(
int startOffset,
int n, SampleT* targetBlock)
const
void readBlockWithGain(int startOffset, int n, SampleT *targetBlock, float gainFactor) const
const SampleT & read(int offset) const
void writeAddBlockWithGain(int startOffset, int n, const SampleT *sourceBlock, float gainFactor)
void writeOffset0(const SampleT &sample)
void write(int offset, const SampleT &sample)
void readAndClearBlock(int startOffset, int n, SampleT *targetBlock)
void writeBlock(int startOffset, int n, const SampleT *sourceBlock)
void readAddBlockWithGain(int startOffset, int n, SampleT *targetBlock, float gainFactor) const
int getAllocatedSize() const
void _splitBlockOffsetFunction(int startOffset, int n, fnc f) const
void readBlock(int startOffset, int n, SampleT *targetBlock) const
void clearBlock(int startOffset, int n)
void advance(int n)
change the 0 position by n
void setToZero(T *dst, int32_t n)
void constantMultiplyAndAdd(const T *src, T constant, T *dst, int32_t n)
void copy(const T *src, T *dst, int32_t n)
void constantMultiply(const T *src, T constant, T *dst, int32_t n)