TCircularBufferState Struct

Header: Dew.Signal/SignalUtils.h · Cross-compiler

struct TCircularBufferState;

Type used by circular buffering.

Record used to hold the state for circular buffering. WritePosition is the current write position index in the buffer and the ReadPosition is the current read position index. BufferSize is initialized with a call to InitCircularBuffer. BufferOverrun flag is set by WriteToCircularBuffer routine, if unread data is overwritten. BufferUnderrun flag is set by the ReadFromCircularBuffer routine, if the data read was already overwritten before it was read for the first time.

Fields

NameTypeDescription
BufferSizeint
DataLenint
IncrementStepdouble
IsBufferOverrunbool
IsBufferUnderrunbool
ReadPositionintType used by circular buffering.