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.
阅读时间1 分钟最后更新于 1 个月前
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. |