ByteBuffer.order

Retrieves this buffer's byte order.

<p> 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 {@link ByteOrder#BIG_ENDIAN BIG_ENDIAN}. </p>

@return This buffer's byte order

  1. ByteOrder order()
    class ByteBuffer
    final
    order
    ()
  2. ByteBuffer order(ByteOrder bo)

Meta