public final class ByteOrder extends Object
Modifier and Type | Field and Description |
---|---|
static ByteOrder |
BIG_ENDIAN
常量表示大字节字节顺序。
|
static ByteOrder |
LITTLE_ENDIAN
常量表示小端字节顺序。
|
public static final ByteOrder BIG_ENDIAN
public static final ByteOrder LITTLE_ENDIAN
public static ByteOrder nativeOrder()
定义了这种方法,使得性能敏感的Java代码可以以与硬件相同的字节顺序分配直接缓冲区。 当使用这种缓冲区时,本地代码库通常更有效率。
public String toString()
该方法返回BIG_ENDIAN
的字符串"BIG_ENDIAN"和LITTLE_ENDIAN
的"LITTLE_ENDIAN" 。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.