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

DataStreamReader.ReadFixedString

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 ushort ReadFixedString(NativeArray<byte> array);

Parameters

Parameter Description
array Buffer to write the string bytes to.

Returns

ushort Length of data read into byte array, or zero if error occurred.

Description

Read and copy data into the given NativeArray of bytes, an error will be logged if not enough bytes are available in the array.