com.onlineobject.objectnet Namespace

NativeArrayExtension..::..CopyFromRawBytes<(Of <(<'T>)>)> Method

Copies raw bytes into a NativeArray of any struct type.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public static void CopyFromRawBytes<T>(

	this NativeArray<T> arr,

	byte[] bytes

)

Type Parameters

T
The struct type of the elements in the NativeArray.

Parameters

arr
Type: NativeArray<(Of <(<'T>)>)>
The NativeArray to copy into.
bytes
Type: array<Byte>[]()[][]
The byte array containing the raw bytes to copy.