ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Constructor GridBuffer

    | Edit this page View Source

    GridBuffer(string, int)

    Constructs an empty buffer with the specified name and element count.

    Declaration
    public GridBuffer(string name, int count)
    Parameters
    Type Name Description
    string name

    The name of the buffer.

    int count

    The number of elements to allocate.

    | Edit this page View Source

    GridBuffer(string, ReadOnlySpan<T>)

    Constructs a new buffer from an existing span of data.

    Declaration
    public GridBuffer(string name, ReadOnlySpan<T> data)
    Parameters
    Type Name Description
    string name

    The name of the buffer.

    ReadOnlySpan<T> data

    The data to initialize the buffer with.