SignalUtils::ReadFromCircularBuffer Function

void ReadFromCircularBuffer(TVec *Buffer, TVec *Dst, TCircularBufferState &State, int ForwardStep = - 1);

Copy data from circular buffer.

#NameTypeDescription
1BufferTVec *
2DstTVec *
3StateTCircularBufferState &
4ForwardStep = - 1int
Remarks:

Copies Dst.Length samples from Buffer to Dst. If there is not Dst.Length samples available, the BufferUnderflow flag will be set in the State variable. The routine advances ReadPosition of the buffer to the position where the next data is to be read from. ForwardStep defines the number of samples to advance the read cursor. If the ForwardStep is -1, the read cursor is advanced Dst.Length samples.

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