Click or drag to resize

JCOBridgeDirectBufferTToArrayTArray(TArray, Boolean) Method

Fills array with a reinterpreted copy of the memory this JCOBridgeDirectBufferT instance is holding. Use only when TArray differs from T; for same-type copies prefer CopyTo(T, Int32).

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public void ToArray<TArray>(
	ref TArray[] array,
	bool resizeToFill = true
)

Parameters

array  TArray
The array to be filled with the content of the https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html
resizeToFill  Boolean  (Optional)
Resize array to contain all data available in the https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html

Type Parameters

TArray
The Type to be used: it can be any Byte, Int16, Int32, Int64, Single, Double or a type defined as a struct
See Also