|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.games.gluegen.runtime.StructAccessor
Constructor Summary | |
StructAccessor(ByteBuffer bb)
|
Method Summary | |
ByteBuffer |
getBuffer()
|
byte |
getByteAt(int slot)
Retrieves the byte at the specified slot (byte offset). |
char |
getCharAt(int slot)
Retrieves the char at the specified slot (2-byte offset). |
double |
getDoubleAt(int slot)
Retrieves the double at the specified slot (8-byte offset). |
float |
getFloatAt(int slot)
Retrieves the float at the specified slot (4-byte offset). |
int |
getIntAt(int slot)
Retrieves the int at the specified slot (4-byte offset). |
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 |
setCharAt(int slot,
char v)
Puts a char at the specified slot (2-byte offset). |
void |
setDoubleAt(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 |
setIntAt(int slot,
int v)
Puts a int at the specified slot (4-byte offset). |
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)
Return 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 long getLongAt(int slot)
public void setLongAt(int slot, long v)
public short getShortAt(int slot)
public void setShortAt(int slot, short v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |