32package com.jogamp.common.nio;
34import java.nio.Buffer;
35import java.nio.ByteBuffer;
48@SuppressWarnings(
"rawtypes")
102 public Object
array() throws UnsupportedOperationException ;
105 public Buffer getBuffer();
107 public
boolean isDirect();
109 public
long getDirectBufferAddress();
117 public
void storeDirectAddress(final ByteBuffer directDest);
125 public
void storeDirectAddress(final ByteBuffer directDest, final
int destOffset);
Hardware independent container for various kinds of buffers.
B flip()
Sets the limit to the current position and the position to zero.
B rewind()
Sets the position to zero.
int elementSize()
Returns byte size of one element.
int capacity()
Returns this buffer's element capacity.
B position(int newPos)
Sets this buffer's element position.
int position()
Returns this buffer's element position.
B clear()
Sets the limit to the capacity and the position to zero.
B limit(int newLim)
Sets this buffer's element limit.
int remaining()
Returns this buffer's remaining element, i.e.
boolean hasRemaining()
Returns remaining() > 0.
int limit()
Returns this buffer's element limit.