다음을 통해 공유


ByteOrder.NativeOrder Method

Definition

Retrieves the native byte order of the underlying platform.

[Android.Runtime.Register("nativeOrder", "()Ljava/nio/ByteOrder;", "")]
public static Java.Nio.ByteOrder? NativeOrder ();
[<Android.Runtime.Register("nativeOrder", "()Ljava/nio/ByteOrder;", "")>]
static member NativeOrder : unit -> Java.Nio.ByteOrder

Returns

The native byte order of the hardware upon which this Java virtual machine is running

Attributes

Remarks

Retrieves the native byte order of the underlying platform.

This method is defined so that performance-sensitive Java code can allocate direct buffers with the same byte order as the hardware. Native code libraries are often more efficient when such buffers are used.

Java documentation for java.nio.ByteOrder.nativeOrder().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to