ReadBytes
Read and copy data into the given NativeArray of bytes. An error will be logged if not enough bytes are available to fill the array, and DataStreamReader.HasFailedReads will then be true.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
ReadBytes(NativeArray<byte>)
Read and copy data into the given NativeArray of bytes. An error will be logged if not enough bytes are available to fill the array, and DataStreamReader.HasFailedReads will then be true.
public void ReadBytes(NativeArray<byte> array)
Parameters
Array to copy data into.
ReadBytes(Span<byte>)
Read and copy data into the given of bytes. An error will be logged if not enough bytes are available to fill the array, and DataStreamReader.HasFailedReads will then be true.
Spanpublic void ReadBytes(Span<byte> span)
Parameters
Span to copy data into.