Language

JniEnvironment.Arrays.CreateMarshalInt16Array Method

Definition

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

public static Java.Interop.JavaInt16Array? CreateMarshalInt16Array(System.Collections.Generic.IEnumerable<short>? value);
static member CreateMarshalInt16Array : seq<int16> -> Java.Interop.JavaInt16Array

Parameters

value
IEnumerable<Int16>

The managed short 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