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

UnsafeAppendBuffer.Reader.ReadNextArray

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* ReadNextArray(out int length);

Parameters

Parameter Description
length Output which is the number of elements in the read array.

Returns

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

Description

Reads an array from the append buffer.

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