Constructor RingBuffer
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
RingBuffer(int)
Creates a new ring buffer with specified size.
public RingBuffer(int size)
Parameters
size
intSize of the buffer to create.
Exceptions
RingBuffer(IEnumerable<T>)
Creates a new ring buffer, filled with specified elements.
public RingBuffer(IEnumerable<T> elements)
Parameters
elements
IEnumerable<T>Elements to fill the buffer with.
Exceptions
RingBuffer(IEnumerable<T>, int)
Creates a new ring buffer, filled with specified elements, and starting at specified index.
public RingBuffer(IEnumerable<T> elements, int index)
Parameters
elements
IEnumerable<T>Elements to fill the buffer with.
index
intStarting element index.