jaulib v1.2.0
Jau Support Library (C++, Java, ..)
Public Member Functions | List of all members
org.jau.io.StructAccessor Class Reference
Collaboration diagram for org.jau.io.StructAccessor:

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)
 

Detailed Description

Definition at line 33 of file StructAccessor.java.

Constructor & Destructor Documentation

◆ StructAccessor()

org.jau.io.StructAccessor.StructAccessor ( final ByteBuffer  bb)

Definition at line 37 of file StructAccessor.java.

Member Function Documentation

◆ getBooleanAt()

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.

◆ getBooleansAt()

final boolean[] org.jau.io.StructAccessor.getBooleansAt ( int  byteOffset,
final boolean[]  v 
)

Definition at line 218 of file StructAccessor.java.

◆ getBuffer()

final ByteBuffer org.jau.io.StructAccessor.getBuffer ( )

Definition at line 43 of file StructAccessor.java.

Here is the caller graph for this function:

◆ getByteAt()

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.

◆ getBytesAt()

final byte[] org.jau.io.StructAccessor.getBytesAt ( int  byteOffset,
final byte[]  v 
)

Definition at line 205 of file StructAccessor.java.

Here is the caller graph for this function:

◆ getCharAt()

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.

◆ getCharsAt()

final char[] org.jau.io.StructAccessor.getCharsAt ( int  byteOffset,
final char[]  v 
)

Definition at line 231 of file StructAccessor.java.

◆ getDoubleAt()

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.

◆ getDoublesAt()

final double[] org.jau.io.StructAccessor.getDoublesAt ( int  byteOffset,
final double[]  v 
)

Definition at line 283 of file StructAccessor.java.

◆ getFloatAt()

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.

◆ getFloatsAt()

final float[] org.jau.io.StructAccessor.getFloatsAt ( int  byteOffset,
final float[]  v 
)

Definition at line 270 of file StructAccessor.java.

◆ getIntAt() [1/2]

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.

Here is the caller graph for this function:

◆ getIntAt() [2/2]

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.

◆ getIntsAt()

final int[] org.jau.io.StructAccessor.getIntsAt ( int  byteOffset,
final int[]  v 
)

Definition at line 257 of file StructAccessor.java.

◆ getLongAt() [1/2]

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.

Here is the caller graph for this function:

◆ getLongAt() [2/2]

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.

◆ getLongsAt()

final long[] org.jau.io.StructAccessor.getLongsAt ( int  byteOffset,
final long[]  v 
)

Definition at line 296 of file StructAccessor.java.

◆ getShortAt()

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.

Here is the caller graph for this function:

◆ getShortsAt()

final short[] org.jau.io.StructAccessor.getShortsAt ( int  byteOffset,
final short[]  v 
)

Definition at line 244 of file StructAccessor.java.

◆ setBooleanAt()

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.

◆ setBooleansAt()

final void org.jau.io.StructAccessor.setBooleansAt ( int  byteOffset,
final boolean[]  v 
)

Definition at line 212 of file StructAccessor.java.

◆ setByteAt()

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.

◆ setBytesAt()

final void org.jau.io.StructAccessor.setBytesAt ( int  byteOffset,
final byte[]  v 
)

Definition at line 199 of file StructAccessor.java.

Here is the caller graph for this function:

◆ setCharAt()

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.

◆ setCharsAt()

final void org.jau.io.StructAccessor.setCharsAt ( int  byteOffset,
final char[]  v 
)

Definition at line 225 of file StructAccessor.java.

◆ setDoubleAt()

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.

◆ setDoublesAt()

final void org.jau.io.StructAccessor.setDoublesAt ( int  byteOffset,
final double[]  v 
)

Definition at line 277 of file StructAccessor.java.

◆ setFloatAt()

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.

◆ setFloatsAt()

final void org.jau.io.StructAccessor.setFloatsAt ( int  byteOffset,
final float[]  v 
)

Definition at line 264 of file StructAccessor.java.

◆ setIntAt() [1/2]

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.

Here is the caller graph for this function:

◆ setIntAt() [2/2]

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.

◆ setIntsAt()

final void org.jau.io.StructAccessor.setIntsAt ( int  byteOffset,
final int[]  v 
)

Definition at line 251 of file StructAccessor.java.

◆ setLongAt() [1/2]

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.

Here is the caller graph for this function:

◆ setLongAt() [2/2]

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.

◆ setLongsAt()

final void org.jau.io.StructAccessor.setLongsAt ( int  byteOffset,
final long[]  v 
)

Definition at line 290 of file StructAccessor.java.

◆ setShortAt()

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.

Here is the caller graph for this function:

◆ setShortsAt()

final void org.jau.io.StructAccessor.setShortsAt ( int  byteOffset,
final short[]  v 
)

Definition at line 238 of file StructAccessor.java.

◆ slice()

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.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: