ReadNext
Reads an element from the append buffer.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
ReadNext<T>(T)
Reads an element from the append buffer.
public void ReadNext<T>(out T value) where T : unmanaged
Parameters
Remarks
Advances the reader's offset by the size of T.
ReadNext<T>()
Reads an element from the append buffer.
public T ReadNext<T>() where T : unmanaged
Returns
Type | Description |
|---|---|
| T | The element read. |
Remarks
Advances the reader's offset by the size of T.
ReadNext(int)
Reads an element from the append buffer.
public void* ReadNext(int structSize)
Parameters
The size of the element to read.
Returns
Type | Description |
|---|---|
| void* | A pointer to where the read element resides in the append buffer. |
Remarks
Advances the reader's offset by .
structSizeReadNext<T>(NativeArray<T>, AllocatorHandle)
Reads an element from the append buffer.
public void ReadNext<T>(out NativeArray<T> value, AllocatorManager.AllocatorHandle allocator) where T : unmanaged
Parameters
Outputs a new array with length of 1. The read element is copied to the single index of this array.
The allocator to use.
Remarks
Advances the reader's offset by the size of T.