ByteBuffer.Order 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.
Overloads
Order() |
Retrieves this buffer's byte order. |
Order(ByteOrder) |
Modifies this buffer's byte order. |
Order()
Retrieves this buffer's byte order.
[Android.Runtime.Register("order", "()Ljava/nio/ByteOrder;", "")]
public Java.Nio.ByteOrder Order ();
[<Android.Runtime.Register("order", "()Ljava/nio/ByteOrder;", "")>]
member this.Order : unit -> Java.Nio.ByteOrder
Returns
This buffer's byte order
- Attributes
Remarks
Retrieves this buffer's byte order.
The byte order is used when reading or writing multibyte values, and when creating buffers that are views of this byte buffer. The order of a newly-created byte buffer is always ByteOrder#BIG_ENDIAN BIG_ENDIAN
.
Java documentation for java.nio.ByteBuffer.order()
.
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
Order(ByteOrder)
Modifies this buffer's byte order.
[Android.Runtime.Register("order", "(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;", "")]
public Java.Nio.ByteBuffer Order (Java.Nio.ByteOrder bo);
[<Android.Runtime.Register("order", "(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;", "")>]
member this.Order : Java.Nio.ByteOrder -> Java.Nio.ByteBuffer
Parameters
- bo
- ByteOrder
The new byte order,
either ByteOrder#BIG_ENDIAN BIG_ENDIAN
or ByteOrder#LITTLE_ENDIAN LITTLE_ENDIAN
Returns
This buffer
- Attributes
Remarks
Modifies this buffer's byte order.
Java documentation for java.nio.ByteBuffer.order(java.nio.ByteOrder)
.
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.