ReadNextArray<T>(out int)
Reads an array from the append buffer.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
ReadNextArray<T>(int)
public void* ReadNextArray<T>(out int length) where T : unmanaged
Parameters
Output which is the number of elements in the read array.
Returns
Type | Description |
|---|---|
| void* | A pointer to where the first element of the read array resides in the append buffer. |
Remarks
An array stored in the append buffer starts with an int specifying the number of values in the array. The first element of an array immediately follows this int.
Advances the reader's offset by the size of the array (plus an int).