Constructor CircularBuffer
CircularBuffer(int)
Declaration
public CircularBuffer(int capacity)
Parameters
Type | Name | Description |
---|---|---|
int | capacity |
CircularBuffer(T[])
Declaration
public CircularBuffer(T[] items)
Parameters
Type | Name | Description |
---|---|---|
T[] | items |
CircularBuffer(int, T[])
Initializes a new instance of the CircularBuffer<T> class.
Declaration
public CircularBuffer(int capacity, T[] items)
Parameters
Type | Name | Description |
---|---|---|
int | capacity | Buffer capacity. Must be positive. |
T[] | items | Items to fill buffer with. Items length must be less than capacity. Suggestion: use Skip(x).Take(y).ToArray() to build this argument from any enumerable. |