TCircularBufferState Record

Source: SignalUtils.cs · Assembly: Dew.Signal

public 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
BufferSizeInt32
DataLenInt32
IncrementStepDouble
IsBufferOverrunBoolean
IsBufferUnderrunBoolean
ReadPositionInt32