Method ReadFixedString
ReadFixedString(NativeArray<byte>)
Read and copy data into the given NativeArray of bytes, an error will be logged if not enough bytes are available in the array.
Declaration
public ushort ReadFixedString(NativeArray<byte> array)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<byte> | array | Buffer to write the string bytes to. |
Returns
| Type | Description |
|---|---|
| ushort | Length of data read into byte array, or zero if error occurred. |