docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ReadWriteQueue<T>

    Inheritance
    object
    ReadWriteQueue<T>
    Implements
    IReadOnlyQueue<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: VivoxUnity.Common
    Assembly: VivoxUnity.dll
    Syntax
    public sealed class ReadWriteQueue<T> : IReadOnlyQueue<T>
    Type Parameters
    Name Description
    T

    Properties

    Count

    The count of items in the queue.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Methods

    Clear()

    Remove all the items from the queue.

    Declaration
    public void Clear()

    Contains(T)

    Declaration
    public bool Contains(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    bool

    Dequeue()

    Remove an item from the queue.

    Declaration
    public T Dequeue()
    Returns
    Type Description
    T

    The item. Null if the queue is empty.

    Enqueue(T)

    Declaration
    public void Enqueue(T item)
    Parameters
    Type Name Description
    T item

    Peek()

    Look at the head of the queue without dequeuing.

    Declaration
    public T Peek()
    Returns
    Type Description
    T

    The next item in the queue. Null if the queue is empty.

    RemoveAll(T)

    Declaration
    public int RemoveAll(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    int

    Events

    AfterItemAdded

    The event that is raised when an item is added.

    Declaration
    public event EventHandler<QueueItemAddedEventArgs<T>> AfterItemAdded
    Event Type
    Type Description
    EventHandler<QueueItemAddedEventArgs<T>>

    Implements

    IReadOnlyQueue<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)