java.nio
Class Bits
java.lang.Object
java.nio.Bits
- class Bits
- extends Object
Access to bits, native and otherwise.
Constructor Summary |
private |
Bits()
|
Method Summary |
private static byte |
_get(long a)
|
private static void |
_put(long a,
byte b)
|
(package private) static ByteOrder |
byteOrder()
|
private static byte |
char0(char x)
|
private static byte |
char1(char x)
|
(package private) static void |
copyFromByteArray(Object src,
long srcPos,
long dstAddr,
long length)
|
(package private) static void |
copyFromCharArray(Object src,
long srcPos,
long dstAddr,
long length)
|
(package private) static void |
copyFromIntArray(Object src,
long srcPos,
long dstAddr,
long length)
|
(package private) static void |
copyFromLongArray(Object src,
long srcPos,
long dstAddr,
long length)
|
(package private) static void |
copyFromShortArray(Object src,
long srcPos,
long dstAddr,
long length)
|
(package private) static void |
copyToByteArray(long srcAddr,
Object dst,
long dstPos,
long length)
|
(package private) static void |
copyToCharArray(long srcAddr,
Object dst,
long dstPos,
long length)
|
(package private) static void |
copyToIntArray(long srcAddr,
Object dst,
long dstPos,
long length)
|
(package private) static void |
copyToLongArray(long srcAddr,
Object dst,
long dstPos,
long length)
|
(package private) static void |
copyToShortArray(long srcAddr,
Object dst,
long dstPos,
long length)
|
(package private) static char |
getChar(ByteBuffer bb,
int bi,
boolean bigEndian)
|
(package private) static char |
getChar(long a,
boolean bigEndian)
|
(package private) static char |
getCharB(ByteBuffer bb,
int bi)
|
(package private) static char |
getCharB(long a)
|
(package private) static char |
getCharL(ByteBuffer bb,
int bi)
|
(package private) static char |
getCharL(long a)
|
(package private) static double |
getDouble(ByteBuffer bb,
int bi,
boolean bigEndian)
|
(package private) static double |
getDouble(long a,
boolean bigEndian)
|
(package private) static double |
getDoubleB(ByteBuffer bb,
int bi)
|
(package private) static double |
getDoubleB(long a)
|
(package private) static double |
getDoubleL(ByteBuffer bb,
int bi)
|
(package private) static double |
getDoubleL(long a)
|
(package private) static float |
getFloat(ByteBuffer bb,
int bi,
boolean bigEndian)
|
(package private) static float |
getFloat(long a,
boolean bigEndian)
|
(package private) static float |
getFloatB(ByteBuffer bb,
int bi)
|
(package private) static float |
getFloatB(long a)
|
(package private) static float |
getFloatL(ByteBuffer bb,
int bi)
|
(package private) static float |
getFloatL(long a)
|
(package private) static int |
getInt(ByteBuffer bb,
int bi,
boolean bigEndian)
|
(package private) static int |
getInt(long a,
boolean bigEndian)
|
(package private) static int |
getIntB(ByteBuffer bb,
int bi)
|
(package private) static int |
getIntB(long a)
|
(package private) static int |
getIntL(ByteBuffer bb,
int bi)
|
(package private) static int |
getIntL(long a)
|
(package private) static long |
getLong(ByteBuffer bb,
int bi,
boolean bigEndian)
|
(package private) static long |
getLong(long a,
boolean bigEndian)
|
(package private) static long |
getLongB(ByteBuffer bb,
int bi)
|
(package private) static long |
getLongB(long a)
|
(package private) static long |
getLongL(ByteBuffer bb,
int bi)
|
(package private) static long |
getLongL(long a)
|
(package private) static short |
getShort(ByteBuffer bb,
int bi,
boolean bigEndian)
|
(package private) static short |
getShort(long a,
boolean bigEndian)
|
(package private) static short |
getShortB(ByteBuffer bb,
int bi)
|
(package private) static short |
getShortB(long a)
|
(package private) static short |
getShortL(ByteBuffer bb,
int bi)
|
(package private) static short |
getShortL(long a)
|
private static byte |
int0(int x)
|
private static byte |
int1(int x)
|
private static byte |
int2(int x)
|
private static byte |
int3(int x)
|
private static byte |
long0(long x)
|
private static byte |
long1(long x)
|
private static byte |
long2(long x)
|
private static byte |
long3(long x)
|
private static byte |
long4(long x)
|
private static byte |
long5(long x)
|
private static byte |
long6(long x)
|
private static byte |
long7(long x)
|
private static char |
makeChar(byte b1,
byte b0)
|
private static int |
makeInt(byte b3,
byte b2,
byte b1,
byte b0)
|
private static long |
makeLong(byte b7,
byte b6,
byte b5,
byte b4,
byte b3,
byte b2,
byte b1,
byte b0)
|
private static short |
makeShort(byte b1,
byte b0)
|
(package private) static int |
pageSize()
|
(package private) static void |
putChar(ByteBuffer bb,
int bi,
char x,
boolean bigEndian)
|
(package private) static void |
putChar(long a,
char x,
boolean bigEndian)
|
(package private) static void |
putCharB(ByteBuffer bb,
int bi,
char x)
|
(package private) static void |
putCharB(long a,
char x)
|
(package private) static void |
putCharL(ByteBuffer bb,
int bi,
char x)
|
(package private) static void |
putCharL(long a,
char x)
|
(package private) static void |
putDouble(ByteBuffer bb,
int bi,
double x,
boolean bigEndian)
|
(package private) static void |
putDouble(long a,
double x,
boolean bigEndian)
|
(package private) static void |
putDoubleB(ByteBuffer bb,
int bi,
double x)
|
(package private) static void |
putDoubleB(long a,
double x)
|
(package private) static void |
putDoubleL(ByteBuffer bb,
int bi,
double x)
|
(package private) static void |
putDoubleL(long a,
double x)
|
(package private) static void |
putFloat(ByteBuffer bb,
int bi,
float x,
boolean bigEndian)
|
(package private) static void |
putFloat(long a,
float x,
boolean bigEndian)
|
(package private) static void |
putFloatB(ByteBuffer bb,
int bi,
float x)
|
(package private) static void |
putFloatB(long a,
float x)
|
(package private) static void |
putFloatL(ByteBuffer bb,
int bi,
float x)
|
(package private) static void |
putFloatL(long a,
float x)
|
(package private) static void |
putInt(ByteBuffer bb,
int bi,
int x,
boolean bigEndian)
|
(package private) static void |
putInt(long a,
int x,
boolean bigEndian)
|
(package private) static void |
putIntB(ByteBuffer bb,
int bi,
int x)
|
(package private) static void |
putIntB(long a,
int x)
|
(package private) static void |
putIntL(ByteBuffer bb,
int bi,
int x)
|
(package private) static void |
putIntL(long a,
int x)
|
(package private) static void |
putLong(ByteBuffer bb,
int bi,
long x,
boolean bigEndian)
|
(package private) static void |
putLong(long a,
long x,
boolean bigEndian)
|
(package private) static void |
putLongB(ByteBuffer bb,
int bi,
long x)
|
(package private) static void |
putLongB(long a,
long x)
|
(package private) static void |
putLongL(ByteBuffer bb,
int bi,
long x)
|
(package private) static void |
putLongL(long a,
long x)
|
(package private) static void |
putShort(ByteBuffer bb,
int bi,
short x,
boolean bigEndian)
|
(package private) static void |
putShort(long a,
short x,
boolean bigEndian)
|
(package private) static void |
putShortB(ByteBuffer bb,
int bi,
short x)
|
(package private) static void |
putShortB(long a,
short x)
|
(package private) static void |
putShortL(ByteBuffer bb,
int bi,
short x)
|
(package private) static void |
putShortL(long a,
short x)
|
(package private) static void |
reserveMemory(long size)
|
private static byte |
short0(short x)
|
private static byte |
short1(short x)
|
(package private) static char |
swap(char x)
|
(package private) static int |
swap(int x)
|
(package private) static long |
swap(long x)
|
(package private) static short |
swap(short x)
|
(package private) static boolean |
unaligned()
|
(package private) static void |
unreserveMemory(long size)
|
(package private) static sun.misc.Unsafe |
unsafe()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unsafe
private static final sun.misc.Unsafe unsafe
byteOrder
private static ByteOrder byteOrder
pageSize
private static int pageSize
unaligned
private static boolean unaligned
unalignedKnown
private static boolean unalignedKnown
maxMemory
private static long maxMemory
reservedMemory
private static long reservedMemory
memoryLimitSet
private static boolean memoryLimitSet
JNI_COPY_TO_ARRAY_THRESHOLD
static final int JNI_COPY_TO_ARRAY_THRESHOLD
- See Also:
- Constant Field Values
JNI_COPY_FROM_ARRAY_THRESHOLD
static final int JNI_COPY_FROM_ARRAY_THRESHOLD
- See Also:
- Constant Field Values
Bits
private Bits()
swap
static short swap(short x)
swap
static char swap(char x)
swap
static int swap(int x)
swap
static long swap(long x)
makeChar
private static char makeChar(byte b1,
byte b0)
getCharL
static char getCharL(ByteBuffer bb,
int bi)
getCharL
static char getCharL(long a)
getCharB
static char getCharB(ByteBuffer bb,
int bi)
getCharB
static char getCharB(long a)
getChar
static char getChar(ByteBuffer bb,
int bi,
boolean bigEndian)
getChar
static char getChar(long a,
boolean bigEndian)
char1
private static byte char1(char x)
char0
private static byte char0(char x)
putCharL
static void putCharL(ByteBuffer bb,
int bi,
char x)
putCharL
static void putCharL(long a,
char x)
putCharB
static void putCharB(ByteBuffer bb,
int bi,
char x)
putCharB
static void putCharB(long a,
char x)
putChar
static void putChar(ByteBuffer bb,
int bi,
char x,
boolean bigEndian)
putChar
static void putChar(long a,
char x,
boolean bigEndian)
makeShort
private static short makeShort(byte b1,
byte b0)
getShortL
static short getShortL(ByteBuffer bb,
int bi)
getShortL
static short getShortL(long a)
getShortB
static short getShortB(ByteBuffer bb,
int bi)
getShortB
static short getShortB(long a)
getShort
static short getShort(ByteBuffer bb,
int bi,
boolean bigEndian)
getShort
static short getShort(long a,
boolean bigEndian)
short1
private static byte short1(short x)
short0
private static byte short0(short x)
putShortL
static void putShortL(ByteBuffer bb,
int bi,
short x)
putShortL
static void putShortL(long a,
short x)
putShortB
static void putShortB(ByteBuffer bb,
int bi,
short x)
putShortB
static void putShortB(long a,
short x)
putShort
static void putShort(ByteBuffer bb,
int bi,
short x,
boolean bigEndian)
putShort
static void putShort(long a,
short x,
boolean bigEndian)
makeInt
private static int makeInt(byte b3,
byte b2,
byte b1,
byte b0)
getIntL
static int getIntL(ByteBuffer bb,
int bi)
getIntL
static int getIntL(long a)
getIntB
static int getIntB(ByteBuffer bb,
int bi)
getIntB
static int getIntB(long a)
getInt
static int getInt(ByteBuffer bb,
int bi,
boolean bigEndian)
getInt
static int getInt(long a,
boolean bigEndian)
int3
private static byte int3(int x)
int2
private static byte int2(int x)
int1
private static byte int1(int x)
int0
private static byte int0(int x)
putIntL
static void putIntL(ByteBuffer bb,
int bi,
int x)
putIntL
static void putIntL(long a,
int x)
putIntB
static void putIntB(ByteBuffer bb,
int bi,
int x)
putIntB
static void putIntB(long a,
int x)
putInt
static void putInt(ByteBuffer bb,
int bi,
int x,
boolean bigEndian)
putInt
static void putInt(long a,
int x,
boolean bigEndian)
makeLong
private static long makeLong(byte b7,
byte b6,
byte b5,
byte b4,
byte b3,
byte b2,
byte b1,
byte b0)
getLongL
static long getLongL(ByteBuffer bb,
int bi)
getLongL
static long getLongL(long a)
getLongB
static long getLongB(ByteBuffer bb,
int bi)
getLongB
static long getLongB(long a)
getLong
static long getLong(ByteBuffer bb,
int bi,
boolean bigEndian)
getLong
static long getLong(long a,
boolean bigEndian)
long7
private static byte long7(long x)
long6
private static byte long6(long x)
long5
private static byte long5(long x)
long4
private static byte long4(long x)
long3
private static byte long3(long x)
long2
private static byte long2(long x)
long1
private static byte long1(long x)
long0
private static byte long0(long x)
putLongL
static void putLongL(ByteBuffer bb,
int bi,
long x)
putLongL
static void putLongL(long a,
long x)
putLongB
static void putLongB(ByteBuffer bb,
int bi,
long x)
putLongB
static void putLongB(long a,
long x)
putLong
static void putLong(ByteBuffer bb,
int bi,
long x,
boolean bigEndian)
putLong
static void putLong(long a,
long x,
boolean bigEndian)
getFloatL
static float getFloatL(ByteBuffer bb,
int bi)
getFloatL
static float getFloatL(long a)
getFloatB
static float getFloatB(ByteBuffer bb,
int bi)
getFloatB
static float getFloatB(long a)
getFloat
static float getFloat(ByteBuffer bb,
int bi,
boolean bigEndian)
getFloat
static float getFloat(long a,
boolean bigEndian)
putFloatL
static void putFloatL(ByteBuffer bb,
int bi,
float x)
putFloatL
static void putFloatL(long a,
float x)
putFloatB
static void putFloatB(ByteBuffer bb,
int bi,
float x)
putFloatB
static void putFloatB(long a,
float x)
putFloat
static void putFloat(ByteBuffer bb,
int bi,
float x,
boolean bigEndian)
putFloat
static void putFloat(long a,
float x,
boolean bigEndian)
getDoubleL
static double getDoubleL(ByteBuffer bb,
int bi)
getDoubleL
static double getDoubleL(long a)
getDoubleB
static double getDoubleB(ByteBuffer bb,
int bi)
getDoubleB
static double getDoubleB(long a)
getDouble
static double getDouble(ByteBuffer bb,
int bi,
boolean bigEndian)
getDouble
static double getDouble(long a,
boolean bigEndian)
putDoubleL
static void putDoubleL(ByteBuffer bb,
int bi,
double x)
putDoubleL
static void putDoubleL(long a,
double x)
putDoubleB
static void putDoubleB(ByteBuffer bb,
int bi,
double x)
putDoubleB
static void putDoubleB(long a,
double x)
putDouble
static void putDouble(ByteBuffer bb,
int bi,
double x,
boolean bigEndian)
putDouble
static void putDouble(long a,
double x,
boolean bigEndian)
_get
private static byte _get(long a)
_put
private static void _put(long a,
byte b)
unsafe
static sun.misc.Unsafe unsafe()
byteOrder
static ByteOrder byteOrder()
pageSize
static int pageSize()
unaligned
static boolean unaligned()
reserveMemory
static void reserveMemory(long size)
unreserveMemory
static void unreserveMemory(long size)
copyFromByteArray
static void copyFromByteArray(Object src,
long srcPos,
long dstAddr,
long length)
copyToByteArray
static void copyToByteArray(long srcAddr,
Object dst,
long dstPos,
long length)
copyFromCharArray
static void copyFromCharArray(Object src,
long srcPos,
long dstAddr,
long length)
copyToCharArray
static void copyToCharArray(long srcAddr,
Object dst,
long dstPos,
long length)
copyFromShortArray
static void copyFromShortArray(Object src,
long srcPos,
long dstAddr,
long length)
copyToShortArray
static void copyToShortArray(long srcAddr,
Object dst,
long dstPos,
long length)
copyFromIntArray
static void copyFromIntArray(Object src,
long srcPos,
long dstAddr,
long length)
copyToIntArray
static void copyToIntArray(long srcAddr,
Object dst,
long dstPos,
long length)
copyFromLongArray
static void copyFromLongArray(Object src,
long srcPos,
long dstAddr,
long length)
copyToLongArray
static void copyToLongArray(long srcAddr,
Object dst,
long dstPos,
long length)