Method ReadBytes
ReadBytes(BinaryReader, NativeArray<Byte>, Int32, Int32)
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. |
| Int32 | count | The number of elements to read. |
| Int32 | offset | The offset at which to start reading. |