Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ReadNext

Reads an element from the append buffer.
Read time 1 minuteLast updated 10 days ago

Definition

ReadNext<T>(T)

Reads an element from the append buffer.
public void ReadNext<T>(out T value) where T : unmanaged

Parameters

value

T
Output for the element read.

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

TThe 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

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>(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.