UnsafeAppendBuffer.Reader
A reader for UnsafeAppendBuffer.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public struct UnsafeAppendBuffer.Reader
Fields
Value | Description |
|---|---|
| Offset | The location of the next read (expressed as a byte offset from the start). |
| Ptr | The internal buffer where the content is stored. |
| Size | The length in bytes of the append buffer's content. |
Constructors
Constructor | Description |
|---|---|
| Reader(System.Void*,System.Int32) | Initializes and returns an instance of UnsafeAppendBuffer.Reader that reads from a buffer. |
| Reader(Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer@) | Initializes and returns an instance of UnsafeAppendBuffer.Reader. |
Properties
Property | Description |
|---|---|
| EndOfBuffer | Whether the offset has advanced past the last of the append buffer's content. |
Methods
Method | Description |
|---|---|
| ReadNext | Reads an element from the append buffer. |
| ReadNextArray | Reads an array from the append buffer. |