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

Search Results for

    Edit this page

    Method TryGetChannel

    | Edit this page View Source

    TryGetChannel<T>(string, out GridBuffer<T>?)

    Retrieves a typed channel by name. Returns false if missing or type mismatch.

    Declaration
    public bool TryGetChannel<T>(string name, out GridBuffer<T>? channel) where T : unmanaged
    Parameters
    Type Name Description
    string name

    Name of the channel

    GridBuffer<T> channel

    Output typed buffer.

    Returns
    Type Description
    bool

    True if successful.

    Type Parameters
    Name Description
    T

    Expected unmanaged type.

    | Edit this page View Source

    TryGetChannel(string, out IGridBuffer?)

    Retrieves an untyped channel by name. Returns false if missing.

    Declaration
    public bool TryGetChannel(string name, out IGridBuffer? channel)
    Parameters
    Type Name Description
    string name

    Name of the channel

    IGridBuffer channel

    Output untyped buffer.

    Returns
    Type Description
    bool

    True if successful.