Method ReadNext
ReadNext<T>(out T)
Reads an element from the append buffer.
Declaration
public void ReadNext<T>(out T value) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Output for the element read. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of element to read. |
Remarks
Advances the reader's offset by the size of T.
ReadNext<T>()
Reads an element from the append buffer.
Declaration
public T ReadNext<T>() where T : unmanaged
Returns
| Type | Description |
|---|---|
| T | The element read. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of element to read. |
Remarks
Advances the reader's offset by the size of T.
ReadNext(int)
Reads an element from the append buffer.
Declaration
public void* ReadNext(int structSize)
Parameters
| Type | Name | Description |
|---|---|---|
| int | structSize | 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 structSize.
ReadNext<T>(out NativeArray<T>, AllocatorHandle)
Reads an element from the append buffer.
Declaration
public void ReadNext<T>(out NativeArray<T> value, AllocatorManager.AllocatorHandle allocator) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<T> | value | Outputs a new array with length of 1. The read element is copied to the single index of this array. |
| AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of element to read. |
Remarks
Advances the reader's offset by the size of T.