Package org.lwjgl.llvm
Class CXVersion
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CXVersion>
org.lwjgl.llvm.CXVersion
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Describes a version number of the form
major.minor.subminor.
Layout
struct CXVersion {
int Major();
int Minor();
int Subminor();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCXVersion(ByteBuffer container) Creates aCXVersioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXVersioncreate(long address) Returns a newCXVersioninstance for the specified memory address.static CXVersion.Buffercreate(long address, int capacity) Create aCXVersion.Bufferinstance at the specified memory.static @Nullable CXVersioncreateSafe(long address) static @Nullable CXVersion.BuffercreateSafe(long address, int capacity) intMajor()the major version number, e.g., the '10' in '10.7.3'.intMinor()the minor version number, e.g., the '7' in '10.7.3'.static intnMajor(long struct) Unsafe version ofMajor().static intnMinor(long struct) Unsafe version ofMinor().static intnSubminor(long struct) Unsafe version ofSubminor().intsizeof()intSubminor()the subminor version number, e.g., the '3' in '10.7.3'.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MAJOR
public static final int MAJORThe struct member offsets. -
MINOR
public static final int MINORThe struct member offsets. -
SUBMINOR
public static final int SUBMINORThe struct member offsets.
-
-
Constructor Details
-
CXVersion
Creates aCXVersioninstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CXVersion>
-
Major
public int Major()the major version number, e.g., the '10' in '10.7.3'. A negative value indicates that there is no version number at all. -
Minor
public int Minor()the minor version number, e.g., the '7' in '10.7.3'. This value will be negative if no minor version number was provided, e.g., for version '10'. -
Subminor
public int Subminor()the subminor version number, e.g., the '3' in '10.7.3'. This value will be negative if no minor or subminor version number was provided, e.g., in version '10' or '10.7'. -
create
Returns a newCXVersioninstance for the specified memory address. -
createSafe
-
create
Create aCXVersion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nMajor
public static int nMajor(long struct) Unsafe version ofMajor(). -
nMinor
public static int nMinor(long struct) Unsafe version ofMinor(). -
nSubminor
public static int nSubminor(long struct) Unsafe version ofSubminor().
-