Package org.lwjgl.llvm
Class CXVersion
- All Implemented Interfaces:
Pointer
Describes a version number of the form
major.minor.subminor
.
Layout
struct CXVersion {
int Major()
;
int Minor()
;
int Subminor()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCXVersion
(ByteBuffer container) Creates aCXVersion
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXVersion
create
(long address) Returns a newCXVersion
instance for the specified memory address.static CXVersion.Buffer
create
(long address, int capacity) Create aCXVersion.Buffer
instance at the specified memory.static CXVersion
createSafe
(long address) static CXVersion.Buffer
createSafe
(long address, int capacity) int
Major()
the major version number, e.g., the '10' in '10.7.3'.int
Minor()
the minor version number, e.g., the '7' in '10.7.3'.static int
nMajor
(long struct) Unsafe version ofMajor()
.static int
nMinor
(long struct) Unsafe version ofMinor()
.static int
nSubminor
(long struct) Unsafe version ofSubminor()
.int
sizeof()
Returnssizeof(struct)
.int
Subminor()
the subminor version number, e.g., the '3' in '10.7.3'.Methods 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 aCXVersion
instance at the current position of the specifiedByteBuffer
container. 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()Description copied from class:Struct
Returnssizeof(struct)
. -
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 newCXVersion
instance for the specified memory address. -
createSafe
-
create
Create aCXVersion.Buffer
instance 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()
.
-