Namespace: LLama.Common
A queue with fixed storage size.
Currently it's only a naive implementation and needs to be further optimized in the future.
public class FixedSizeQueue<T> : , System.Collections.IEnumerable
T
Inheritance Object → FixedSizeQueue<T>
Implements IEnumerable<T>, IEnumerable
public int Count { get; }
public int Capacity { get; }
public FixedSizeQueue(int size)
size Int32
public FixedSizeQueue(int size, IEnumerable<T> data)
size Int32
data IEnumerable<T>
public FixedSizeQueue<T> FillWith(T value)
value T
Enquene an element.
public void Enqueue(T item)
item T
public T[] ToArray()
T[]
public IEnumerator<T> GetEnumerator()
IEnumerator<T>