You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.InitCircularBuffer Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.InitCircularBuffer Method

Initialize a circular buffer.

Syntax
C#
Visual Basic
public static void InitCircularBuffer(int BufferSize, double IncrementStep, ref TCircularBufferState State);

Initializes circular buffer State variable. BufferSize is the new buffer size. Buffer holds the actual data and its size is adjusted to match BufferSize. IncrementStep defines the step by how much will the buffer increase when auto-resizing. NewBufferLength = OldBufferLength*IncrementStep; Auto-resizing is performed by WriteToCircularBuffer routine. The incrementStep parameter will be forced in to interval between 1 and 10.

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