# 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 IEnumerable<T>, [IEnumerable](https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable) ## Properties ### **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 ### **FillWith(T)** Replace every item in the queue with the given value ```csharp public FixedSizeQueue FillWith(T value) ``` #### Parameters `value` T
The value to replace all items with #### Returns [FixedSizeQueue<T>](./llama.common.fixedsizequeue-1.md)
returns this ### **Enqueue(T)** Enquene an element. ```csharp public void Enqueue(T item) ``` #### Parameters `item` T
### **GetEnumerator()** ```csharp public IEnumerator GetEnumerator() ``` #### Returns IEnumerator<T>