UnsafeStream.Writer
Writes data into a buffer of an UnsafeStream.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
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
Property | Description |
|---|---|
| ForEachCount | The number of buffers in the stream of this writer. |
Methods
Method | Description |
|---|---|
| Allocate | Allocate space in a buffer. |
| BeginForEachIndex | Readies this writer to write to a particular buffer of the stream. |
| EndForEachIndex | Readies the buffer written by this writer for reading. |
| Write | Write a value to a buffer. |