SignalUtils::WriteToCircularBuffer Function

void WriteToCircularBuffer(TVec *Buffer, TVec *Src, TCircularBufferState &State, bool AutoResize = false);

Copy data to circular buffer.

#NameTypeDescription
1BufferTVec *
2SrcTVec *
3StateTCircularBufferState &
4AutoResize = falsebool
Remarks:

Copies Src.Length samples from Src to Buffer. If there is not enough space available and the data that has not yet been read will be overwritten, the BufferOverflow flag will be set in the State variable. The routine advances WritePosition of the buffer to the position where the next data block is to be written to. If AutoResize is True the buffer will be resized before the buffer is underrun or overrun. The size of the buffer will increased by IncrementStep parameter passed to the SignalUtils::InitCircularBuffer.

See Also: SignalUtils::InitCircularBuffer, SignalUtils::ReadFromCircularBuffer, SignalUtils::ResizeCircularBuffer, SignalUtils::MonitorCircularBuffer, SignalUtils::CircularBuffer
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler