Documentation

Unity Engine

Unity Engine

WriteList

Writes data from a native list.
Read time 1 minuteLast updated 5 days ago

Definition

WriteList<T>(BinaryWriter, NativeList<T>)

Writes data from a native list.
public static void WriteList<T>(this BinaryWriter writer, NativeList<T> data) where T : unmanaged

Parameters

The BinaryReader to write to.

The data to write.

WriteList<T>(BinaryWriter, NativeList<T>, int, int)

Writes the specified number of elements from a native list.
public static void WriteList<T>(this BinaryWriter writer, NativeList<T> data, int index, int count) where T : unmanaged

Parameters

The BinaryReader to write to.

The data to write.

index

The index at which to start writing from.

count

The number of elements to write.