Struct NativeStream.Writer
Writes data into a buffer of a Native
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 |
---|---|
For |
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. |
Begin |
Readies this writer to write to a particular buffer of the stream. |
End |
Readies the buffer written by this writer for reading. |
Patch |
For internal use only. |
Write<T>(T) | Write a value to a buffer. |