Table of Contents

Class CircularBuffer<T>

Namespace
Core.Data
Assembly
Core.dll

Fixed-size circular buffer to prevent unbounded memory growth

public class CircularBuffer<T>

Type Parameters

T
Inheritance
object
CircularBuffer<T>

Constructors

CircularBuffer(int)

public CircularBuffer(int capacity)

Parameters

capacity int

Properties

Capacity

public int Capacity { get; }

Property Value

int

Count

public int Count { get; }

Property Value

int

Items

public IReadOnlyList<T> Items { get; }

Property Value

IReadOnlyList<T>

Methods

Add(T)

public void Add(T item)

Parameters

item T

Clear()

public void Clear()