Struct UnsafeStream.Writer
Writes data into a buffer of an UnsafeStream.
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: solution.dll
Syntax
public struct UnsafeStream.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. |
Write<T>(T) | Write a value to a buffer. |