Method ReadBytes
ReadBytes(BinaryReader, NativeArray<byte>, int, int)
Reads the specified number of elements from a native byte array.
Declaration
public static void ReadBytes(this BinaryReader reader, NativeArray<byte> elements, int count, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The BinaryReader to read from. |
NativeArray<byte> | elements | The native array to read of. |
int | count | The number of elements to read. |
int | offset | The offset at which to start reading. |