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 : struct
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>, Int32, Int32)
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 : struct
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The BinaryReader to write to. |
NativeList<T> | data | The data to write. |
Int32 | index | The index at which to start writing from. |
Int32 | 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. |