GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java™ (public API).
com.jogamp.common.nio.StructAccessor Class Reference
Collaboration diagram for com.jogamp.common.nio.StructAccessor:

Public Member Functions

 StructAccessor (final ByteBuffer bb)
 Create a new instance. More...
 
final ByteBuffer getBuffer ()
 Return the underlying native direct ByteBuffer. More...
 
final long getDirectBufferAddress ()
 Returns the native address of the underlying native ByteBuffer. More...
 
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

Author
Kenneth Russel, Sven Gothel, Michael Bien, et al.

Definition at line 47 of file StructAccessor.java.

Constructor & Destructor Documentation

◆ StructAccessor()

com.jogamp.common.nio.StructAccessor.StructAccessor ( final ByteBuffer  bb)

Create a new instance.

The ByteBuffer will be ByteBuffer#rewind() and native-order to be used with native code set.

Definition at line 52 of file StructAccessor.java.

Member Function Documentation

◆ getBooleanAt()

final boolean com.jogamp.common.nio.StructAccessor.getBooleanAt ( final int  byteOffset)

Retrieves the boolean at the specified byteOffset.

Definition at line 93 of file StructAccessor.java.

◆ getBooleansAt()

final boolean[] com.jogamp.common.nio.StructAccessor.getBooleansAt ( int  byteOffset,
final boolean[]  v 
)

Definition at line 238 of file StructAccessor.java.

◆ getBuffer()

final ByteBuffer com.jogamp.common.nio.StructAccessor.getBuffer ( )

Return the underlying native direct ByteBuffer.

Definition at line 58 of file StructAccessor.java.

◆ getByteAt()

final byte com.jogamp.common.nio.StructAccessor.getByteAt ( final int  byteOffset)

Retrieves the byte at the specified byteOffset.

Definition at line 83 of file StructAccessor.java.

◆ getBytesAt()

final byte[] com.jogamp.common.nio.StructAccessor.getBytesAt ( int  byteOffset,
final byte[]  v 
)

Definition at line 225 of file StructAccessor.java.

◆ getCharAt()

final char com.jogamp.common.nio.StructAccessor.getCharAt ( final int  byteOffset)

Retrieves the char at the specified byteOffset.

Definition at line 103 of file StructAccessor.java.

◆ getCharsAt()

final char[] com.jogamp.common.nio.StructAccessor.getCharsAt ( int  byteOffset,
final char[]  v 
)

Definition at line 251 of file StructAccessor.java.

◆ getDirectBufferAddress()

final long com.jogamp.common.nio.StructAccessor.getDirectBufferAddress ( )

Returns the native address of the underlying native ByteBuffer.

Definition at line 63 of file StructAccessor.java.

◆ getDoubleAt()

final double com.jogamp.common.nio.StructAccessor.getDoubleAt ( final int  byteOffset)

Retrieves the double at the specified byteOffset.

Definition at line 174 of file StructAccessor.java.

◆ getDoublesAt()

final double[] com.jogamp.common.nio.StructAccessor.getDoublesAt ( int  byteOffset,
final double[]  v 
)

Definition at line 303 of file StructAccessor.java.

◆ getFloatAt()

final float com.jogamp.common.nio.StructAccessor.getFloatAt ( final int  byteOffset)

Retrieves the float at the specified byteOffset.

Definition at line 164 of file StructAccessor.java.

◆ getFloatsAt()

final float[] com.jogamp.common.nio.StructAccessor.getFloatsAt ( int  byteOffset,
final float[]  v 
)

Definition at line 290 of file StructAccessor.java.

◆ getIntAt() [1/2]

final int com.jogamp.common.nio.StructAccessor.getIntAt ( final int  byteOffset)

Retrieves the int at the specified byteOffset.

Definition at line 123 of file StructAccessor.java.

◆ getIntAt() [2/2]

final int com.jogamp.common.nio.StructAccessor.getIntAt ( final int  byteOffset,
final int  nativeSizeInBytes 
)

Retrieves the int at the specified byteOffset.

Definition at line 133 of file StructAccessor.java.

◆ getIntsAt()

final int[] com.jogamp.common.nio.StructAccessor.getIntsAt ( int  byteOffset,
final int[]  v 
)

Definition at line 277 of file StructAccessor.java.

◆ getLongAt() [1/2]

final long com.jogamp.common.nio.StructAccessor.getLongAt ( final int  byteOffset)

Retrieves the long at the specified byteOffset.

Definition at line 184 of file StructAccessor.java.

Here is the caller graph for this function:

◆ getLongAt() [2/2]

final long com.jogamp.common.nio.StructAccessor.getLongAt ( final int  byteOffset,
final int  nativeSizeInBytes 
)

Retrieves the long at the specified byteOffset.

Definition at line 194 of file StructAccessor.java.

◆ getLongsAt()

final long[] com.jogamp.common.nio.StructAccessor.getLongsAt ( int  byteOffset,
final long[]  v 
)

Definition at line 316 of file StructAccessor.java.

◆ getShortAt()

final short com.jogamp.common.nio.StructAccessor.getShortAt ( final int  byteOffset)

Retrieves the short at the specified byteOffset.

Definition at line 113 of file StructAccessor.java.

◆ getShortsAt()

final short[] com.jogamp.common.nio.StructAccessor.getShortsAt ( int  byteOffset,
final short[]  v 
)

Definition at line 264 of file StructAccessor.java.

◆ setBooleanAt()

final void com.jogamp.common.nio.StructAccessor.setBooleanAt ( final int  byteOffset,
final boolean  v 
)

Puts a boolean at the specified byteOffset.

Definition at line 98 of file StructAccessor.java.

◆ setBooleansAt()

final void com.jogamp.common.nio.StructAccessor.setBooleansAt ( int  byteOffset,
final boolean[]  v 
)

Definition at line 232 of file StructAccessor.java.

◆ setByteAt()

final void com.jogamp.common.nio.StructAccessor.setByteAt ( final int  byteOffset,
final byte  v 
)

Puts a byte at the specified byteOffset.

Definition at line 88 of file StructAccessor.java.

◆ setBytesAt()

final void com.jogamp.common.nio.StructAccessor.setBytesAt ( int  byteOffset,
final byte[]  v 
)

Definition at line 219 of file StructAccessor.java.

◆ setCharAt()

final void com.jogamp.common.nio.StructAccessor.setCharAt ( final int  byteOffset,
final char  v 
)

Puts a char at the specified byteOffset.

Definition at line 108 of file StructAccessor.java.

◆ setCharsAt()

final void com.jogamp.common.nio.StructAccessor.setCharsAt ( int  byteOffset,
final char[]  v 
)

Definition at line 245 of file StructAccessor.java.

◆ setDoubleAt()

final void com.jogamp.common.nio.StructAccessor.setDoubleAt ( final int  byteOffset,
final double  v 
)

Puts a double at the specified byteOffset.

Definition at line 179 of file StructAccessor.java.

◆ setDoublesAt()

final void com.jogamp.common.nio.StructAccessor.setDoublesAt ( int  byteOffset,
final double[]  v 
)

Definition at line 297 of file StructAccessor.java.

◆ setFloatAt()

final void com.jogamp.common.nio.StructAccessor.setFloatAt ( final int  byteOffset,
final float  v 
)

Puts a float at the specified byteOffset.

Definition at line 169 of file StructAccessor.java.

◆ setFloatsAt()

final void com.jogamp.common.nio.StructAccessor.setFloatsAt ( int  byteOffset,
final float[]  v 
)

Definition at line 284 of file StructAccessor.java.

◆ setIntAt() [1/2]

final void com.jogamp.common.nio.StructAccessor.setIntAt ( final int  byteOffset,
final int  v 
)

Puts a int at the specified byteOffset.

Definition at line 128 of file StructAccessor.java.

◆ setIntAt() [2/2]

final void com.jogamp.common.nio.StructAccessor.setIntAt ( final int  byteOffset,
final int  v,
final int  nativeSizeInBytes 
)

Puts a int at the specified byteOffset.

Definition at line 147 of file StructAccessor.java.

◆ setIntsAt()

final void com.jogamp.common.nio.StructAccessor.setIntsAt ( int  byteOffset,
final int[]  v 
)

Definition at line 271 of file StructAccessor.java.

◆ setLongAt() [1/2]

final void com.jogamp.common.nio.StructAccessor.setLongAt ( final int  byteOffset,
final long  v 
)

Puts a long at the specified byteOffset.

Definition at line 189 of file StructAccessor.java.

Here is the caller graph for this function:

◆ setLongAt() [2/2]

final void com.jogamp.common.nio.StructAccessor.setLongAt ( final int  byteOffset,
final long  v,
final int  nativeSizeInBytes 
)

Puts a long at the specified byteOffset.

Definition at line 206 of file StructAccessor.java.

◆ setLongsAt()

final void com.jogamp.common.nio.StructAccessor.setLongsAt ( int  byteOffset,
final long[]  v 
)

Definition at line 310 of file StructAccessor.java.

◆ setShortAt()

final void com.jogamp.common.nio.StructAccessor.setShortAt ( final int  byteOffset,
final short  v 
)

Puts a short at the specified byteOffset.

Definition at line 118 of file StructAccessor.java.

◆ setShortsAt()

final void com.jogamp.common.nio.StructAccessor.setShortsAt ( int  byteOffset,
final short[]  v 
)

Definition at line 258 of file StructAccessor.java.

◆ slice()

final ByteBuffer com.jogamp.common.nio.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 73 of file StructAccessor.java.


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