|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.common.nio.StructAccessor
public class StructAccessor
Constructor Summary | |
---|---|
StructAccessor(ByteBuffer bb)
|
Method Summary | |
---|---|
ByteBuffer |
getBuffer()
|
byte |
getByteAt(int slot)
Retrieves the byte at the specified slot (byte offset). |
byte[] |
getBytesAt(int slot,
byte[] v)
|
char |
getCharAt(int slot)
Retrieves the char at the specified slot (2-byte offset). |
char[] |
getCharsAt(int slot,
char[] v)
|
double |
getDoubleAt(int slot)
Retrieves the double at the specified slot (8-byte offset). |
double[] |
getDoublesAt(int slot,
double[] v)
Retrieves the long at the specified slot (8-byte offset). |
float |
getFloatAt(int slot)
Retrieves the float at the specified slot (4-byte offset). |
float[] |
getFloatsAt(int slot,
float[] v)
|
int |
getIntAt(int slot)
Retrieves the int at the specified slot (4-byte offset). |
int[] |
getIntsAt(int slot,
int[] v)
|
long |
getLongAt(int slot)
Retrieves the long at the specified slot (8-byte offset). |
short |
getShortAt(int slot)
Retrieves the short at the specified slot (2-byte offset). |
void |
setByteAt(int slot,
byte v)
Puts a byte at the specified slot (byte offset). |
void |
setBytesAt(int slot,
byte[] v)
|
void |
setCharAt(int slot,
char v)
Puts a char at the specified slot (2-byte offset). |
void |
setCharsAt(int slot,
char[] v)
|
void |
setDoubleAt(int slot,
double v)
Puts a double at the specified slot (8-byte offset). |
void |
setDoublesAt(int slot,
double[] v)
Puts a double at the specified slot (8-byte offset). |
void |
setFloatAt(int slot,
float v)
Puts a float at the specified slot (4-byte offset). |
void |
setFloatsAt(int slot,
float[] v)
|
void |
setIntAt(int slot,
int v)
Puts a int at the specified slot (4-byte offset). |
void |
setIntsAt(int slot,
int[] v)
|
void |
setLongAt(int slot,
long v)
Puts a long at the specified slot (8-byte offset). |
void |
setShortAt(int slot,
short v)
Puts a short at the specified slot (2-byte offset). |
ByteBuffer |
slice(int byteOffset,
int byteLength)
Returns a slice of the current ByteBuffer starting at the specified byte offset and extending the specified number of bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StructAccessor(ByteBuffer bb)
Method Detail |
---|
public ByteBuffer getBuffer()
public ByteBuffer slice(int byteOffset, int byteLength)
public byte getByteAt(int slot)
public void setByteAt(int slot, byte v)
public char getCharAt(int slot)
public void setCharAt(int slot, char v)
public double getDoubleAt(int slot)
public void setDoubleAt(int slot, double v)
public float getFloatAt(int slot)
public void setFloatAt(int slot, float v)
public int getIntAt(int slot)
public void setIntAt(int slot, int v)
public short getShortAt(int slot)
public void setShortAt(int slot, short v)
public void setBytesAt(int slot, byte[] v)
public byte[] getBytesAt(int slot, byte[] v)
public void setCharsAt(int slot, char[] v)
public char[] getCharsAt(int slot, char[] v)
public void setIntsAt(int slot, int[] v)
public int[] getIntsAt(int slot, int[] v)
public void setFloatsAt(int slot, float[] v)
public float[] getFloatsAt(int slot, float[] v)
public void setDoublesAt(int slot, double[] v)
UnsupportedOperationException
public double[] getDoublesAt(int slot, double[] v)
UnsupportedOperationException
public long getLongAt(int slot)
public void setLongAt(int slot, long v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |