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

Copy data to circular buffer.

Syntax
C#
Visual Basic
public static void WriteToCircularBuffer(TVec Buffer, TVec Src, ref TCircularBufferState State, bool AutoResize);

Copies Src.Length samples from Src to Buffer. If there is not enough space available and the data that has not yet been read will be overwritten, the BufferOverflow flag will be set in the State variable. The routine advances WritePosition of the buffer to the position where the next data block is to be written to. If AutoResize is True the buffer will be resized before the buffer is underrun or overrun. The size of the buffer will increased by IncrementStep parameter passed to the InitCircularBuffer.

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