Method ReadArray
ReadArray<T>(BinaryReader, NativeArray<T>, int)
Reads the specified number of elements from a native array.
Declaration
public static void ReadArray<T>(this BinaryReader reader, NativeArray<T> elements, int count) where T : struct
Parameters
| Type | Name | Description | 
|---|---|---|
| BinaryReader | reader | The BinaryReader to read from.  | 
    
| NativeArray<T> | elements | The native array to read of.  | 
    
| int | count | The number of elements to read.  | 
    
Type Parameters
| Name | Description | 
|---|---|
| T | The type of the elements in the native array.  |