Constructor GridBuffer
| Edit this page View SourceGridBuffer(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. |
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. |