|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jogamp.common.nio.StructAccessor
public class StructAccessor
Constructor Summary | |
---|---|
StructAccessor(ByteBuffer bb)
|
Method Summary | |
---|---|
ByteBuffer |
getBuffer()
|
byte |
getByteAt(int byteOffset)
Retrieves the byte at the specified byteOffset. |
byte[] |
getBytesAt(int byteOffset,
byte[] v)
|
char |
getCharAt(int byteOffset)
Retrieves the char at the specified byteOffset. |
char[] |
getCharsAt(int byteOffset,
char[] v)
|
double |
getDoubleAt(int byteOffset)
Retrieves the double at the specified byteOffset. |
double[] |
getDoublesAt(int byteOffset,
double[] v)
|
float |
getFloatAt(int byteOffset)
Retrieves the float at the specified byteOffset. |
float[] |
getFloatsAt(int byteOffset,
float[] v)
|
int |
getIntAt(int byteOffset)
Retrieves the int at the specified byteOffset. |
int |
getIntAt(int byteOffset,
int nativeSizeInBytes)
Retrieves the int at the specified byteOffset. |
int[] |
getIntsAt(int byteOffset,
int[] v)
|
long |
getLongAt(int byteOffset)
Retrieves the long at the specified byteOffset. |
long |
getLongAt(int byteOffset,
int nativeSizeInBytes)
Retrieves the long at the specified byteOffset. |
long[] |
getLongsAt(int byteOffset,
long[] v)
|
short |
getShortAt(int byteOffset)
Retrieves the short at the specified byteOffset. |
void |
setByteAt(int byteOffset,
byte v)
Puts a byte at the specified byteOffset. |
void |
setBytesAt(int byteOffset,
byte[] v)
|
void |
setCharAt(int byteOffset,
char v)
Puts a char at the specified byteOffset. |
void |
setCharsAt(int byteOffset,
char[] v)
|
void |
setDoubleAt(int byteOffset,
double v)
Puts a double at the specified byteOffset. |
void |
setDoublesAt(int byteOffset,
double[] v)
|
void |
setFloatAt(int byteOffset,
float v)
Puts a float at the specified byteOffset. |
void |
setFloatsAt(int byteOffset,
float[] v)
|
void |
setIntAt(int byteOffset,
int v)
Puts a int at the specified byteOffset. |
void |
setIntAt(int byteOffset,
int v,
int nativeSizeInBytes)
Puts a int at the specified byteOffset. |
void |
setIntsAt(int byteOffset,
int[] v)
|
void |
setLongAt(int byteOffset,
long v)
Puts a long at the specified byteOffset. |
void |
setLongAt(int byteOffset,
long v,
int nativeSizeInBytes)
Puts a long at the specified byteOffset. |
void |
setLongsAt(int byteOffset,
long[] v)
|
void |
setShortAt(int byteOffset,
short v)
Puts a short at the specified byteOffset. |
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 final ByteBuffer getBuffer()
public final ByteBuffer slice(int byteOffset, int byteLength)
public final byte getByteAt(int byteOffset)
public final void setByteAt(int byteOffset, byte v)
public final char getCharAt(int byteOffset)
public final void setCharAt(int byteOffset, char v)
public final short getShortAt(int byteOffset)
public final void setShortAt(int byteOffset, short v)
public final int getIntAt(int byteOffset)
public final void setIntAt(int byteOffset, int v)
public final int getIntAt(int byteOffset, int nativeSizeInBytes)
public final void setIntAt(int byteOffset, int v, int nativeSizeInBytes)
public final float getFloatAt(int byteOffset)
public final void setFloatAt(int byteOffset, float v)
public final double getDoubleAt(int byteOffset)
public final void setDoubleAt(int byteOffset, double v)
public final long getLongAt(int byteOffset)
public final void setLongAt(int byteOffset, long v)
public final long getLongAt(int byteOffset, int nativeSizeInBytes)
public final void setLongAt(int byteOffset, long v, int nativeSizeInBytes)
public final void setBytesAt(int byteOffset, byte[] v)
public final byte[] getBytesAt(int byteOffset, byte[] v)
public final void setCharsAt(int byteOffset, char[] v)
public final char[] getCharsAt(int byteOffset, char[] v)
public final void setIntsAt(int byteOffset, int[] v)
public final int[] getIntsAt(int byteOffset, int[] v)
public final void setFloatsAt(int byteOffset, float[] v)
public final float[] getFloatsAt(int byteOffset, float[] v)
public final void setDoublesAt(int byteOffset, double[] v)
public final double[] getDoublesAt(int byteOffset, double[] v)
public final void setLongsAt(int byteOffset, long[] v)
public final long[] getLongsAt(int byteOffset, long[] v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |