Struct NativeStream.Writer
Writes data into a buffer of a NativeStream.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
[NativeContainer]
[NativeContainerSupportsMinMaxWriteRestriction]
public struct NativeStream.Writer
Remarks
An individual writer can only be used for one buffer of one stream. Do not create more than one writer for an individual buffer.
Properties
| Name | Description |
|---|---|
| ForEachCount | The number of buffers in the stream of this writer. |
Methods
| Name | Description |
|---|---|
| Allocate(int) | Allocate space in a buffer. |
| Allocate<T>() | Allocate space in a buffer. |
| BeginForEachIndex(int) | Readies this writer to write to a particular buffer of the stream. |
| EndForEachIndex() | Readies the buffer written by this writer for reading. |
| PatchMinMaxRange(int) | For internal use only. |
| Write<T>(T) | Write a value to a buffer. |