com.onlineobject.objectnet Namespace

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

Converts a NativeArray of any struct type to a raw byte array.

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

Syntax


public static byte[] ToRawBytes<T>(

	this NativeArray<T> arr

)

Type Parameters

T
The struct type of the elements in the NativeArray.

Parameters

arr
Type: NativeArray<(Of <(<'T>)>)>
The NativeArray to convert.

Return Value

A byte array containing the raw bytes of the NativeArray.