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

Copy data to a circular buffer.

Syntax
C#
Visual Basic
public static void CircularBuffer(TVec Buffer, TVec Source, int BuffSize);

Shifts the Buffer data to the left, to make room for new Source data and copies Source to the Buffer. BufferSize defines the maximum size up to which the Buffer will increase and before the shifting begins. When BufferSizse is exceeded the oldest data is dropped to make space for the new. 

Note This function is not very efficient for very big buffers, but it is very simple to use.

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