Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

UnsafeAppendBuffer.Reader.ReadNext

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void ReadNext(out T value);

Parameters

Parameter Description
value Output for the element read.

Description

Reads an element from the append buffer.

Advances the reader's offset by the size of T.


Declaration

public T ReadNext();

Returns

T The element read.

Description

Reads an element from the append buffer.

Advances the reader's offset by the size of T.


Declaration

public void* ReadNext(int structSize);

Parameters

Parameter Description
structSize The size of the element to read.

Returns

void* A pointer to where the read element resides in the append buffer.

Description

Reads an element from the append buffer.

Advances the reader's offset by structSize.


Declaration

public void ReadNext(out NativeArray`1 value, AllocatorHandle allocator);

Parameters

Parameter Description
value Outputs a new array with length of 1. The read element is copied to the single index of this array.
allocator The allocator to use.

Description

Reads an element from the append buffer.

Advances the reader's offset by the size of T.