Method ReadBytes
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 HasFailedReads will then be true.
Declaration
public void ReadBytes(NativeArray<byte> array)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<byte> | array | Array to copy data into. |
ReadBytes(Span<byte>)
Read and copy data into the given Span of bytes. An error will
be logged if not enough bytes are available to fill the array, and
HasFailedReads will then be true.
Declaration
public void ReadBytes(Span<byte> span)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<byte> | span | Span to copy data into. |