GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java™ (public API).
com.jogamp.common.os.MachineDataInfo Class Reference

Machine data description for alignment and size onle, see com.jogamp.gluegen. More...

Collaboration diagram for com.jogamp.common.os.MachineDataInfo:

Classes

enum  StaticConfig
 Static enumeration of MachineDataInfo instances used for high performance data size and alignment lookups, e.g. More...
 

Public Member Functions

 MachineDataInfo (final boolean runtimeValidated, final int intSizeInBytes, final int longSizeInBytes, final int floatSizeInBytes, final int doubleSizeInBytes, final int ldoubleSizeInBytes, final int pointerSizeInBytes, final int pageSizeInBytes, final int int8AlignmentInBytes, final int int16AlignmentInBytes, final int int32AlignmentInBytes, final int int64AlignmentInBytes, final int intAlignmentInBytes, final int longAlignmentInBytes, final int floatAlignmentInBytes, final int doubleAlignmentInBytes, final int ldoubleAlignmentInBytes, final int pointerAlignmentInBytes)
 
final boolean isRuntimeValidated ()
 
final int intSizeInBytes ()
 
final int longSizeInBytes ()
 
final int int8SizeInBytes ()
 
final int int16SizeInBytes ()
 
final int int32SizeInBytes ()
 
final int int64SizeInBytes ()
 
final int floatSizeInBytes ()
 
final int doubleSizeInBytes ()
 
final int ldoubleSizeInBytes ()
 
final int pointerSizeInBytes ()
 
final int pageSizeInBytes ()
 
final int intAlignmentInBytes ()
 
final int longAlignmentInBytes ()
 
final int int8AlignmentInBytes ()
 
final int int16AlignmentInBytes ()
 
final int int32AlignmentInBytes ()
 
final int int64AlignmentInBytes ()
 
final int floatAlignmentInBytes ()
 
final int doubleAlignmentInBytes ()
 
final int ldoubleAlignmentInBytes ()
 
final int pointerAlignmentInBytes ()
 
int pageCount (final int size)
 
int pageAlignedSize (final int size)
 
final boolean equals (final Object obj)
 Checks whether two size objects are equal. More...
 
final boolean compatible (final MachineDataInfo md)
 Checks whether two MachineDataInfo objects are equal. More...
 
StringBuilder toString (StringBuilder sb)
 
String toString ()
 

Detailed Description

Machine data description for alignment and size onle, see com.jogamp.gluegen.

little-endian / big/endian description is left, allowing re-using instances in StaticConfig. Use PlatformPropsImpl#LITTLE_ENDIAN.

Further more, the value {@ MachineDataInfo::pageSizeInBytes} shall be ignored in StaticConfig, see MachineDataInfo#compatible(MachineDataInfo).

Definition at line 57 of file MachineDataInfo.java.

Constructor & Destructor Documentation

◆ MachineDataInfo()

com.jogamp.common.os.MachineDataInfo.MachineDataInfo ( final boolean  runtimeValidated,
final int  intSizeInBytes,
final int  longSizeInBytes,
final int  floatSizeInBytes,
final int  doubleSizeInBytes,
final int  ldoubleSizeInBytes,
final int  pointerSizeInBytes,
final int  pageSizeInBytes,
final int  int8AlignmentInBytes,
final int  int16AlignmentInBytes,
final int  int32AlignmentInBytes,
final int  int64AlignmentInBytes,
final int  intAlignmentInBytes,
final int  longAlignmentInBytes,
final int  floatAlignmentInBytes,
final int  doubleAlignmentInBytes,
final int  ldoubleAlignmentInBytes,
final int  pointerAlignmentInBytes 
)

Definition at line 223 of file MachineDataInfo.java.

Here is the caller graph for this function:

Member Function Documentation

◆ compatible()

final boolean com.jogamp.common.os.MachineDataInfo.compatible ( final MachineDataInfo  md)

Checks whether two MachineDataInfo objects are equal.

Two MachineDataInfo instances are considered equal if all components match but isRuntimeValidated() and pageSizeInBytes().

Returns
true if the two MachineDataInfo are equal; otherwise false.

Definition at line 335 of file MachineDataInfo.java.

Here is the caller graph for this function:

◆ doubleAlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.doubleAlignmentInBytes ( )

Definition at line 291 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ doubleSizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.doubleSizeInBytes ( )

Definition at line 279 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equals()

final boolean com.jogamp.common.os.MachineDataInfo.equals ( final Object  obj)

Checks whether two size objects are equal.

Two instances of MachineDataInfo are considered equal if all components match but runtimeValidated, isRuntimeValidated().

Returns
true if the two MachineDataInfo are equal; otherwise false.

Definition at line 317 of file MachineDataInfo.java.

Here is the call graph for this function:

◆ floatAlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.floatAlignmentInBytes ( )

Definition at line 290 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ floatSizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.floatSizeInBytes ( )

Definition at line 278 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int16AlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.int16AlignmentInBytes ( )

Definition at line 287 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int16SizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.int16SizeInBytes ( )

Definition at line 275 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int32AlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.int32AlignmentInBytes ( )

Definition at line 288 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int32SizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.int32SizeInBytes ( )

Definition at line 276 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int64AlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.int64AlignmentInBytes ( )

Definition at line 289 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int64SizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.int64SizeInBytes ( )

Definition at line 277 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int8AlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.int8AlignmentInBytes ( )

Definition at line 286 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int8SizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.int8SizeInBytes ( )

Definition at line 274 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intAlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.intAlignmentInBytes ( )

Definition at line 284 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intSizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.intSizeInBytes ( )

Definition at line 272 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isRuntimeValidated()

final boolean com.jogamp.common.os.MachineDataInfo.isRuntimeValidated ( )
Returns
true if all values are validated at runtime, otherwise false (i.e. for static compilation w/ preset values)

Definition at line 268 of file MachineDataInfo.java.

Here is the caller graph for this function:

◆ ldoubleAlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.ldoubleAlignmentInBytes ( )

Definition at line 292 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ldoubleSizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.ldoubleSizeInBytes ( )

Definition at line 280 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ longAlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.longAlignmentInBytes ( )

Definition at line 285 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ longSizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.longSizeInBytes ( )

Definition at line 273 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pageAlignedSize()

int com.jogamp.common.os.MachineDataInfo.pageAlignedSize ( final int  size)
Returns
page aligned size in bytes

Definition at line 305 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pageCount()

int com.jogamp.common.os.MachineDataInfo.pageCount ( final int  size)
Returns
number of pages required for size in bytes

Definition at line 298 of file MachineDataInfo.java.

Here is the caller graph for this function:

◆ pageSizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.pageSizeInBytes ( )

Definition at line 282 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointerAlignmentInBytes()

final int com.jogamp.common.os.MachineDataInfo.pointerAlignmentInBytes ( )

Definition at line 293 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointerSizeInBytes()

final int com.jogamp.common.os.MachineDataInfo.pointerSizeInBytes ( )

Definition at line 281 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString() [1/2]

String com.jogamp.common.os.MachineDataInfo.toString ( )

Definition at line 375 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString() [2/2]

StringBuilder com.jogamp.common.os.MachineDataInfo.toString ( StringBuilder  sb)

Definition at line 355 of file MachineDataInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

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