# FixedSizeQueue<T> 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. ```csharp public class FixedSizeQueue : , , , System.Collections.IEnumerable ``` #### Type Parameters `T`
Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [FixedSizeQueue<T>](./llama.common.fixedsizequeue-1.md)
Implements IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, [IEnumerable](https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable) ## Properties ### **Item** ```csharp public T Item { get; } ``` #### Property Value T
### **Count** Number of items in this queue ```csharp public int Count { get; } ``` #### Property Value [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
### **Capacity** Maximum number of items allowed in this queue ```csharp public int Capacity { get; } ``` #### Property Value [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
## Constructors ### **FixedSizeQueue(Int32)** Create a new queue ```csharp public FixedSizeQueue(int size) ``` #### Parameters `size` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
the maximum number of items to store in this queue ### **FixedSizeQueue(Int32, IEnumerable<T>)** Fill the quene with the data. Please ensure that data.Count <= size ```csharp public FixedSizeQueue(int size, IEnumerable data) ``` #### Parameters `size` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
`data` IEnumerable<T>
## Methods ### **Enqueue(T)** Enquene an element. ```csharp public void Enqueue(T item) ``` #### Parameters `item` T
### **GetEnumerator()** ```csharp public IEnumerator GetEnumerator() ``` #### Returns IEnumerator<T>