docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor CircularBuffer

    CircularBuffer(int)

    Declaration
    public CircularBuffer(int capacity)
    Parameters
    Type Name Description
    int capacity

    CircularBuffer(int, T[])

    Initializes a new instance of the CircularBuffer<T> class.

    Declaration
    public CircularBuffer(int capacity, T[] items)
    Parameters
    Type Name Description
    int capacity

    Buffer capacity. Must be positive.

    T[] items

    Items to fill buffer with. Items length must be less than capacity. Suggestion: use Skip(x).Take(y).ToArray() to build this argument from any enumerable.

    In This Article
    Back to top
    Copyright © 2024 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)