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

Search Results for

    Edit this page

    Interface IGridBuffer

    A typed, contiguous buffer of per-voxel data associated with a grid.

    Namespace: ZLab.Discrete.Grids
    Assembly: ZLab.Discrete.dll
    Syntax
    public interface IGridBuffer

    Properties

    Name Description
    Count

    The number of elements in the buffer.

    ElementType

    The type of data stored in the buffer.

    Name

    The name of the buffer, used for identification and retrieval within a grid.

    SizeInBytes

    The size of the buffer's data in bytes.

    Methods

    Name Description
    Clone()

    Creates a duplicate of the channel, including its metadata and data.

    SetFromBytes(ReadOnlySpan<byte>)

    Sets the values of the channel using a read-only span of bytes. The length of the input span must match the size in bytes of the channel's data.

    WriteTo(Span<byte>)

    Writes the contents of the buffer to a provided byte destination.