Struct UnsafeStream.Reader
Reads data from a buffer of an Unsafe
Namespace: Unity.Collections.LowLevel .Unsafe
Assembly: solution.dll
Syntax
public struct UnsafeStream.Reader
Remarks
An individual reader can only be used for one buffer of one stream. Do not create more than one reader for an individual buffer.
Properties
Name | Description |
---|---|
For |
The number of buffers in the stream of this reader. |
Remaining |
The number of items not yet read from the buffer. |
Methods
Name | Description |
---|---|
Begin |
Readies this reader to read a particular buffer of the stream. |
Count() | Returns the total number of items in the buffers of the stream. |
End |
Does nothing. |
Peek<T>() | Reads the next value from the buffer. Does not advance the reader. |
Read |
Returns a pointer to the next position to read from the buffer. Advances the reader some number of bytes. |
Read<T>() | Reads the next value from the buffer. |