public interface NativeBuffer<B extends NativeBuffer>
| Modifier and Type | Method and Description |
|---|---|
Object |
array() |
int |
arrayOffset() |
int |
capacity() |
int |
elementSize() |
long |
get() |
long |
get(int idx) |
Buffer |
getBuffer() |
boolean |
hasArray() |
boolean |
hasRemaining() |
boolean |
isDirect() |
int |
limit() |
int |
position() |
B |
position(int newPos) |
B |
put(B src) |
B |
put(int index,
long value) |
B |
put(long value) |
int |
remaining() |
B |
rewind() |
int elementSize()
int limit()
int capacity()
int position()
B position(int newPos)
int remaining()
boolean hasRemaining()
boolean hasArray()
int arrayOffset()
hasArray() is true,
otherwise 0.Object array() throws UnsupportedOperationException
hasArray() is true,
otherwise it throws UnsupportedOperationException.
The returned primitive array maybe of type int[] or long[], etc ..UnsupportedOperationException - if this object has no backup arrayhasArray()Buffer getBuffer()
boolean isDirect()
B rewind()
B put(int index, long value)
B put(long value)
long get()
long get(int idx)