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.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public ushort ReadFixedString(NativeArray<byte> array)
Parameters
Buffer to write the string bytes to.
Returns
Type | Description |
|---|---|
| ushort | Length of data read into byte array, or zero if error occurred. |