Method WriteList
WriteList<T>(BinaryWriter, NativeList<T>)
Writes data from a native list.
Declaration
public static void WriteList<T>(this BinaryWriter writer, NativeList<T> data) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The BinaryReader to write to. |
| NativeList<T> | data | The data to write. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of data to write from the native list. |
WriteList<T>(BinaryWriter, NativeList<T>, int, int)
Writes the specified number of elements from a native list.
Declaration
public static void WriteList<T>(this BinaryWriter writer, NativeList<T> data, int index, int count) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The BinaryReader to write to. |
| NativeList<T> | data | The data to write. |
| int | index | The index at which to start writing from. |
| int | count | The number of elements to write. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of data to write from the native list. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Throws if the index is outside of the buffer range. |