Class Lidgren::Network::NetQueue
template <T T>
ClassList > Lidgren > Network > NetQueue
Thread safe (blocking) expanding queue with TryDequeue() and EnqueueFirst()
Public Properties
| Type | Name | 
|---|---|
| property int | Capacity   Gets the current capacity for the queue.  | 
| property int | Count   Gets the number of items in the queue.  | 
Public Functions
| Type | Name | 
|---|---|
| void | Clear ()  Removes all objects from the queue.  | 
| bool | Contains (T item)  Determines whether an item is in the queue.  | 
| void | Enqueue (T item)  Adds an item last/tail of the queue.  | 
| void | Enqueue (IEnumerable< T > items)  Adds an item last/tail of the queue.  | 
| void | EnqueueFirst (T item)  Places an item first, at the head of the queue.  | 
| NetQueue (int initialCapacity)  NetQueue constructor.  | 
|
| T[] | ToArray ()  Copies the queue items to a new array.  | 
| bool | TryDequeue (out T item)  Gets an item from the head of the queue, or returns default(T) if empty.  | 
| int | TryDrain (IList< T > addTo)  Gets all items from the head of the queue, or returns number of items popped.  | 
| T | TryPeek (int offset)  Returns default(T) if queue is empty.  | 
Public Properties Documentation
property Capacity
property Count
Public Functions Documentation
function Clear
function Contains
function Enqueue [1/2]
function Enqueue [2/2]
function EnqueueFirst
function NetQueue
function ToArray
function TryDequeue
function TryDrain
function TryPeek
The documentation for this class was generated from the following file api/unity-plugin/Scripts/Networking/Lidgren.Network/NetQueue.cs