|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.nio.NIOAccess
class NIOAccess
A class allowing native code to access the underlying data of an NIO Buffer, breaking encapsulation in the name of efficiency.
| Constructor Summary | |
|---|---|
NIOAccess()
|
|
| Method Summary | |
|---|---|
(package private) static Object |
getBaseArray(Buffer b)
Returns the underlying Java array containing the data of the given Buffer, or null if the Buffer is not backed by a Java array. |
(package private) static int |
getBaseArrayOffset(Buffer b)
Returns the offset in bytes from the start of the underlying Java array object containing the data of the given Buffer to the actual start of the data. |
(package private) static long |
getBasePointer(Buffer b)
Returns the underlying native pointer to the data of the given Buffer starting at the Buffer's current position, or 0 if the Buffer is not backed by native heap storage. |
(package private) static int |
getRemainingBytes(Buffer b)
Returns the number of bytes remaining in the given Buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
NIOAccess()
| Method Detail |
|---|
static long getBasePointer(Buffer b)
Buffer - b the Buffer to be queried
static int getRemainingBytes(Buffer b)
remaining() by the byte-size of elements
of this Buffer.
Buffer - b the Buffer to be queried
static Object getBaseArray(Buffer b)
Buffer - b the Buffer to be queried
static int getBaseArrayOffset(Buffer b)
Buffer - b the Buffer to be queried
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||