jaulib v1.2.0
Jau Support Library (C++, Java, ..)
|
Public Member Functions | |
StructAccessor (final ByteBuffer bb) | |
final ByteBuffer | getBuffer () |
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. More... | |
final byte | getByteAt (final int byteOffset) |
Retrieves the byte at the specified byteOffset. More... | |
final void | setByteAt (final int byteOffset, final byte v) |
Puts a byte at the specified byteOffset. More... | |
final boolean | getBooleanAt (final int byteOffset) |
Retrieves the boolean at the specified byteOffset. More... | |
final void | setBooleanAt (final int byteOffset, final boolean v) |
Puts a boolean at the specified byteOffset. More... | |
final char | getCharAt (final int byteOffset) |
Retrieves the char at the specified byteOffset. More... | |
final void | setCharAt (final int byteOffset, final char v) |
Puts a char at the specified byteOffset. More... | |
final short | getShortAt (final int byteOffset) |
Retrieves the short at the specified byteOffset. More... | |
final void | setShortAt (final int byteOffset, final short v) |
Puts a short at the specified byteOffset. More... | |
final int | getIntAt (final int byteOffset) |
Retrieves the int at the specified byteOffset. More... | |
final void | setIntAt (final int byteOffset, final int v) |
Puts a int at the specified byteOffset. More... | |
final int | getIntAt (final int byteOffset, final int nativeSizeInBytes) |
Retrieves the int at the specified byteOffset. More... | |
final void | setIntAt (final int byteOffset, final int v, final int nativeSizeInBytes) |
Puts a int at the specified byteOffset. More... | |
final float | getFloatAt (final int byteOffset) |
Retrieves the float at the specified byteOffset. More... | |
final void | setFloatAt (final int byteOffset, final float v) |
Puts a float at the specified byteOffset. More... | |
final double | getDoubleAt (final int byteOffset) |
Retrieves the double at the specified byteOffset. More... | |
final void | setDoubleAt (final int byteOffset, final double v) |
Puts a double at the specified byteOffset. More... | |
final long | getLongAt (final int byteOffset) |
Retrieves the long at the specified byteOffset. More... | |
final void | setLongAt (final int byteOffset, final long v) |
Puts a long at the specified byteOffset. More... | |
final long | getLongAt (final int byteOffset, final int nativeSizeInBytes) |
Retrieves the long at the specified byteOffset. More... | |
final void | setLongAt (final int byteOffset, final long v, final int nativeSizeInBytes) |
Puts a long at the specified byteOffset. More... | |
final void | setBytesAt (int byteOffset, final byte[] v) |
final byte[] | getBytesAt (int byteOffset, final byte[] v) |
final void | setBooleansAt (int byteOffset, final boolean[] v) |
final boolean[] | getBooleansAt (int byteOffset, final boolean[] v) |
final void | setCharsAt (int byteOffset, final char[] v) |
final char[] | getCharsAt (int byteOffset, final char[] v) |
final void | setShortsAt (int byteOffset, final short[] v) |
final short[] | getShortsAt (int byteOffset, final short[] v) |
final void | setIntsAt (int byteOffset, final int[] v) |
final int[] | getIntsAt (int byteOffset, final int[] v) |
final void | setFloatsAt (int byteOffset, final float[] v) |
final float[] | getFloatsAt (int byteOffset, final float[] v) |
final void | setDoublesAt (int byteOffset, final double[] v) |
final double[] | getDoublesAt (int byteOffset, final double[] v) |
final void | setLongsAt (int byteOffset, final long[] v) |
final long[] | getLongsAt (int byteOffset, final long[] v) |
Definition at line 33 of file StructAccessor.java.
org.jau.io.StructAccessor.StructAccessor | ( | final ByteBuffer | bb | ) |
Definition at line 37 of file StructAccessor.java.
final boolean org.jau.io.StructAccessor.getBooleanAt | ( | final int | byteOffset | ) |
Retrieves the boolean at the specified byteOffset.
Definition at line 73 of file StructAccessor.java.
final boolean[] org.jau.io.StructAccessor.getBooleansAt | ( | int | byteOffset, |
final boolean[] | v | ||
) |
Definition at line 218 of file StructAccessor.java.
final ByteBuffer org.jau.io.StructAccessor.getBuffer | ( | ) |
final byte org.jau.io.StructAccessor.getByteAt | ( | final int | byteOffset | ) |
Retrieves the byte at the specified byteOffset.
Definition at line 63 of file StructAccessor.java.
final byte[] org.jau.io.StructAccessor.getBytesAt | ( | int | byteOffset, |
final byte[] | v | ||
) |
final char org.jau.io.StructAccessor.getCharAt | ( | final int | byteOffset | ) |
Retrieves the char at the specified byteOffset.
Definition at line 83 of file StructAccessor.java.
final char[] org.jau.io.StructAccessor.getCharsAt | ( | int | byteOffset, |
final char[] | v | ||
) |
Definition at line 231 of file StructAccessor.java.
final double org.jau.io.StructAccessor.getDoubleAt | ( | final int | byteOffset | ) |
Retrieves the double at the specified byteOffset.
Definition at line 154 of file StructAccessor.java.
final double[] org.jau.io.StructAccessor.getDoublesAt | ( | int | byteOffset, |
final double[] | v | ||
) |
Definition at line 283 of file StructAccessor.java.
final float org.jau.io.StructAccessor.getFloatAt | ( | final int | byteOffset | ) |
Retrieves the float at the specified byteOffset.
Definition at line 144 of file StructAccessor.java.
final float[] org.jau.io.StructAccessor.getFloatsAt | ( | int | byteOffset, |
final float[] | v | ||
) |
Definition at line 270 of file StructAccessor.java.
final int org.jau.io.StructAccessor.getIntAt | ( | final int | byteOffset | ) |
Retrieves the int at the specified byteOffset.
Definition at line 103 of file StructAccessor.java.
final int org.jau.io.StructAccessor.getIntAt | ( | final int | byteOffset, |
final int | nativeSizeInBytes | ||
) |
Retrieves the int at the specified byteOffset.
Definition at line 113 of file StructAccessor.java.
final int[] org.jau.io.StructAccessor.getIntsAt | ( | int | byteOffset, |
final int[] | v | ||
) |
Definition at line 257 of file StructAccessor.java.
final long org.jau.io.StructAccessor.getLongAt | ( | final int | byteOffset | ) |
Retrieves the long at the specified byteOffset.
Definition at line 164 of file StructAccessor.java.
final long org.jau.io.StructAccessor.getLongAt | ( | final int | byteOffset, |
final int | nativeSizeInBytes | ||
) |
Retrieves the long at the specified byteOffset.
Definition at line 174 of file StructAccessor.java.
final long[] org.jau.io.StructAccessor.getLongsAt | ( | int | byteOffset, |
final long[] | v | ||
) |
Definition at line 296 of file StructAccessor.java.
final short org.jau.io.StructAccessor.getShortAt | ( | final int | byteOffset | ) |
Retrieves the short at the specified byteOffset.
Definition at line 93 of file StructAccessor.java.
final short[] org.jau.io.StructAccessor.getShortsAt | ( | int | byteOffset, |
final short[] | v | ||
) |
Definition at line 244 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setBooleanAt | ( | final int | byteOffset, |
final boolean | v | ||
) |
Puts a boolean at the specified byteOffset.
Definition at line 78 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setBooleansAt | ( | int | byteOffset, |
final boolean[] | v | ||
) |
Definition at line 212 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setByteAt | ( | final int | byteOffset, |
final byte | v | ||
) |
Puts a byte at the specified byteOffset.
Definition at line 68 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setBytesAt | ( | int | byteOffset, |
final byte[] | v | ||
) |
final void org.jau.io.StructAccessor.setCharAt | ( | final int | byteOffset, |
final char | v | ||
) |
Puts a char at the specified byteOffset.
Definition at line 88 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setCharsAt | ( | int | byteOffset, |
final char[] | v | ||
) |
Definition at line 225 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setDoubleAt | ( | final int | byteOffset, |
final double | v | ||
) |
Puts a double at the specified byteOffset.
Definition at line 159 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setDoublesAt | ( | int | byteOffset, |
final double[] | v | ||
) |
Definition at line 277 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setFloatAt | ( | final int | byteOffset, |
final float | v | ||
) |
Puts a float at the specified byteOffset.
Definition at line 149 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setFloatsAt | ( | int | byteOffset, |
final float[] | v | ||
) |
Definition at line 264 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setIntAt | ( | final int | byteOffset, |
final int | v | ||
) |
Puts a int at the specified byteOffset.
Definition at line 108 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setIntAt | ( | final int | byteOffset, |
final int | v, | ||
final int | nativeSizeInBytes | ||
) |
Puts a int at the specified byteOffset.
Definition at line 127 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setIntsAt | ( | int | byteOffset, |
final int[] | v | ||
) |
Definition at line 251 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setLongAt | ( | final int | byteOffset, |
final long | v | ||
) |
Puts a long at the specified byteOffset.
Definition at line 169 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setLongAt | ( | final int | byteOffset, |
final long | v, | ||
final int | nativeSizeInBytes | ||
) |
Puts a long at the specified byteOffset.
Definition at line 186 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setLongsAt | ( | int | byteOffset, |
final long[] | v | ||
) |
Definition at line 290 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setShortAt | ( | final int | byteOffset, |
final short | v | ||
) |
Puts a short at the specified byteOffset.
Definition at line 98 of file StructAccessor.java.
final void org.jau.io.StructAccessor.setShortsAt | ( | int | byteOffset, |
final short[] | v | ||
) |
Definition at line 238 of file StructAccessor.java.
final ByteBuffer org.jau.io.StructAccessor.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.
Definition at line 53 of file StructAccessor.java.