You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Structs, Records, Enums > Dew.Signal.TCircularBufferState Structure
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
Dew.Signal.TCircularBufferState Structure

Type used by circular buffering.

Syntax
C#
Visual Basic
public struct TCircularBufferState { public int ReadPosition; public int BufferSize; public int DataLen; public bool IsBufferOverrun; public bool IsBufferUnderrun; public double IncrementStep; }

SignalUtils.cs

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.

InitCircularBuffer, WriteToCircularBuffer, ReadFromCircularBuffer

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!