| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | |
| public final boolean[] | |
| public final ByteBuffer | |
| public final byte | |
| public final byte[] | |
| public final char | |
| public final char[] | |
| public final double | |
| public final double[] | |
| public final float | |
| public final float[] | |
| public final int | |
| public final int | getIntAt(final int byteOffset, final int nativeSizeInBytes)
Retrieves the int at the specified byteOffset. |
| public final int[] | |
| public final long | |
| public final long | getLongAt(final int byteOffset, final int nativeSizeInBytes)
Retrieves the long at the specified byteOffset. |
| public final long[] | |
| public final short | |
| public final short[] | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | setIntAt(final int byteOffset, final int v, final int nativeSizeInBytes)
Puts a int at the specified byteOffset. |
| public final void | |
| public final void | |
| public final void | setLongAt(final int byteOffset, final long v, final int nativeSizeInBytes)
Puts a long at the specified byteOffset. |
| public final void | |
| public final void | |
| public final void | |
| public final ByteBuffer | slice(final int byteOffset, final int byteLength)
Returns a slice of the current ByteBuffer starting at the specified byte offset and extending the specified number of bytes. |
| bb | back to summary |
|---|---|
| private final ByteBuffer bb | |
| StructAccessor | back to summary |
|---|---|
| public StructAccessor(final ByteBuffer bb) | |
| getBooleanAt | back to summary |
|---|---|
| public final boolean getBooleanAt(final int byteOffset) Retrieves the boolean at the specified byteOffset. | |
| getBooleansAt | back to summary |
|---|---|
| public final boolean[] getBooleansAt(int byteOffset, final boolean[] v) | |
| getBuffer | back to summary |
|---|---|
| public final ByteBuffer getBuffer() | |
| getByteAt | back to summary |
|---|---|
| public final byte getByteAt(final int byteOffset) Retrieves the byte at the specified byteOffset. | |
| getBytesAt | back to summary |
|---|---|
| public final byte[] getBytesAt(int byteOffset, final byte[] v) | |
| getCharAt | back to summary |
|---|---|
| public final char getCharAt(final int byteOffset) Retrieves the char at the specified byteOffset. | |
| getCharsAt | back to summary |
|---|---|
| public final char[] getCharsAt(int byteOffset, final char[] v) | |
| getDoubleAt | back to summary |
|---|---|
| public final double getDoubleAt(final int byteOffset) Retrieves the double at the specified byteOffset. | |
| getDoublesAt | back to summary |
|---|---|
| public final double[] getDoublesAt(int byteOffset, final double[] v) | |
| getFloatAt | back to summary |
|---|---|
| public final float getFloatAt(final int byteOffset) Retrieves the float at the specified byteOffset. | |
| getFloatsAt | back to summary |
|---|---|
| public final float[] getFloatsAt(int byteOffset, final float[] v) | |
| getIntAt | back to summary |
|---|---|
| public final int getIntAt(final int byteOffset) Retrieves the int at the specified byteOffset. | |
| getIntAt | back to summary |
|---|---|
| public final int getIntAt(final int byteOffset, final int nativeSizeInBytes) Retrieves the int at the specified byteOffset. | |
| getIntsAt | back to summary |
|---|---|
| public final int[] getIntsAt(int byteOffset, final int[] v) | |
| getLongAt | back to summary |
|---|---|
| public final long getLongAt(final int byteOffset) Retrieves the long at the specified byteOffset. | |
| getLongAt | back to summary |
|---|---|
| public final long getLongAt(final int byteOffset, final int nativeSizeInBytes) Retrieves the long at the specified byteOffset. | |
| getLongsAt | back to summary |
|---|---|
| public final long[] getLongsAt(int byteOffset, final long[] v) | |
| getShortAt | back to summary |
|---|---|
| public final short getShortAt(final int byteOffset) Retrieves the short at the specified byteOffset. | |
| getShortsAt | back to summary |
|---|---|
| public final short[] getShortsAt(int byteOffset, final short[] v) | |
| setBooleanAt | back to summary |
|---|---|
| public final void setBooleanAt(final int byteOffset, final boolean v) Puts a boolean at the specified byteOffset. | |
| setBooleansAt | back to summary |
|---|---|
| public final void setBooleansAt(int byteOffset, final boolean[] v) | |
| setByteAt | back to summary |
|---|---|
| public final void setByteAt(final int byteOffset, final byte v) Puts a byte at the specified byteOffset. | |
| setBytesAt | back to summary |
|---|---|
| public final void setBytesAt(int byteOffset, final byte[] v) | |
| setCharAt | back to summary |
|---|---|
| public final void setCharAt(final int byteOffset, final char v) Puts a char at the specified byteOffset. | |
| setCharsAt | back to summary |
|---|---|
| public final void setCharsAt(int byteOffset, final char[] v) | |
| setDoubleAt | back to summary |
|---|---|
| public final void setDoubleAt(final int byteOffset, final double v) Puts a double at the specified byteOffset. | |
| setDoublesAt | back to summary |
|---|---|
| public final void setDoublesAt(int byteOffset, final double[] v) | |
| setFloatAt | back to summary |
|---|---|
| public final void setFloatAt(final int byteOffset, final float v) Puts a float at the specified byteOffset. | |
| setFloatsAt | back to summary |
|---|---|
| public final void setFloatsAt(int byteOffset, final float[] v) | |
| setIntAt | back to summary |
|---|---|
| public final void setIntAt(final int byteOffset, final int v) Puts a int at the specified byteOffset. | |
| setIntAt | back to summary |
|---|---|
| public final void setIntAt(final int byteOffset, final int v, final int nativeSizeInBytes) Puts a int at the specified byteOffset. | |
| setIntsAt | back to summary |
|---|---|
| public final void setIntsAt(int byteOffset, final int[] v) | |
| setLongAt | back to summary |
|---|---|
| public final void setLongAt(final int byteOffset, final long v) Puts a long at the specified byteOffset. | |
| setLongAt | back to summary |
|---|---|
| public final void setLongAt(final int byteOffset, final long v, final int nativeSizeInBytes) Puts a long at the specified byteOffset. | |
| setLongsAt | back to summary |
|---|---|
| public final void setLongsAt(int byteOffset, final long[] v) | |
| setShortAt | back to summary |
|---|---|
| public final void setShortAt(final int byteOffset, final short v) Puts a short at the specified byteOffset. | |
| setShortsAt | back to summary |
|---|---|
| public final void setShortsAt(int byteOffset, final short[] v) | |
| slice | back to summary |
|---|---|
| public final ByteBuffer slice(final int byteOffset, final int byteLength) Returns a slice of the current ByteBuffer starting at the specified byte offset and extending the specified number of bytes. Note that this method is not thread-safe with respect to the other methods in this class. | |