JniEnvironment.Arrays.CreateMarshalSByteArray Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reuses a Java byte-array wrapper or creates one from a managed sequence.
public static Java.Interop.JavaSByteArray? CreateMarshalSByteArray(System.Collections.Generic.IEnumerable<sbyte>? value);
static member CreateMarshalSByteArray : seq<sbyte> -> Java.Interop.JavaSByteArray
Parameters
- value
- IEnumerable<SByte>
The managed signed-byte 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.