Method Write
Write<T>(T)
Write a value to a buffer.
Declaration
public void Write<T>(T value) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to write. |
Type Parameters
Name | Description |
---|---|
T | The type of value to write. |
Remarks
The value is written to the buffer which was specified with BeginForEachIndex(int).
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if BeginForEachIndex was not called. |
ArgumentException | Thrown when the NativeStream.Writer instance has been passed by value instead of by reference. |