Table of Contents

Constructor RingBuffer

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

RingBuffer(int)

Creates a new ring buffer with specified size.

public RingBuffer(int size)

Parameters

size int

Size of the buffer to create.

Exceptions

ArgumentOutOfRangeException

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

ArgumentException
ArgumentOutOfRangeException

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 int

Starting element index.

Exceptions

ArgumentException
ArgumentOutOfRangeException