Table of Contents

Interface IBuffer<T>

Namespace
AlgorithmsSW.Buffer
Assembly
AlgorithmsSW.dll

Represents a generic buffer interface.

public interface IBuffer<T> : IEnumerable<T>, IEnumerable

Type Parameters

T

The type of elements in the buffer.

Inherited Members
Extension Methods

Properties

Capacity

Gets the maximum number of elements the buffer can hold.

int Capacity { get; }

Property Value

int

Count

Gets the current number of elements in the buffer.

int Count { get; }

Property Value

int

First

Gets the first element in the buffer.

T First { get; }

Property Value

T

IsFull

Gets a value indicating whether the buffer is full.

bool IsFull { get; }

Property Value

bool

Last

Gets the last element in the buffer.

T Last { get; }

Property Value

T

Methods

Clear()

Clears all items from the buffer.

void Clear()

Insert(T)

Inserts an item into the buffer.

void Insert(T item)

Parameters

item T

The item to insert into the buffer.