|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.UnsafeAccess
@InterfaceAudience.Private @InterfaceStability.Evolving public final class UnsafeAccess
Field Summary | |
---|---|
static int |
BYTE_ARRAY_BASE_OFFSET
The offset to the first element in a byte array. |
static sun.misc.Unsafe |
theUnsafe
|
Method Summary | |
---|---|
static void |
copy(byte[] src,
int srcOffset,
ByteBuffer dest,
int destOffset,
int length)
Copies the bytes from given array's offset to length part into the given buffer. |
static void |
copy(ByteBuffer src,
int srcOffset,
byte[] dest,
int destOffset,
int length)
Copies specified number of bytes from given offset of src ByteBuffer to the
dest array. |
static void |
copy(ByteBuffer src,
int srcOffset,
ByteBuffer dest,
int destOffset,
int length)
Copies specified number of bytes from given offset of src buffer into the dest
buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final sun.misc.Unsafe theUnsafe
public static final int BYTE_ARRAY_BASE_OFFSET
Method Detail |
---|
public static void copy(byte[] src, int srcOffset, ByteBuffer dest, int destOffset, int length)
src
- srcOffset
- dest
- destOffset
- length
- public static void copy(ByteBuffer src, int srcOffset, byte[] dest, int destOffset, int length)
src
ByteBuffer to the
dest
array.
src
- srcOffset
- dest
- destOffset
- length
- public static void copy(ByteBuffer src, int srcOffset, ByteBuffer dest, int destOffset, int length)
src
buffer into the dest
buffer.
src
- srcOffset
- dest
- destOffset
- length
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |