Language

JniEnvironment.Arrays.CreateMarshalSingleArray Method

Definition

Reuses a Java float-array wrapper or creates one from a managed sequence.

public static Java.Interop.JavaSingleArray? CreateMarshalSingleArray(System.Collections.Generic.IEnumerable<float>? value);
static member CreateMarshalSingleArray : seq<single> -> Java.Interop.JavaSingleArray

Parameters

value
IEnumerable<Single>

The managed float sequence, or null.

Returns

The matching supplied wrapper, a new wrapper containing copied elements, or null if value is null.

Remarks

New wrappers are marked for temporary marshaling cleanup; existing wrappers are returned unchanged. Use DisposeUnlessReferenced after marshaling to clean up a temporary wrapper.

Applies to