Package org.lwjgl.llvm
Class CXVersion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXVersion
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class CXVersion extends org.lwjgl.system.Struct
Describes a version number of the formmajor.minor.subminor
.Member documentation
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
– 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
– 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'.
Layout
struct CXVersion { int Major; int Minor; int Subminor; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXVersion.Buffer
An array ofCXVersion
structs.
-
Constructor Summary
Constructors Constructor Description CXVersion(java.nio.ByteBuffer container)
Creates aCXVersion
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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()
Returns the value of theMajor
field.int
Minor()
Returns the value of theMinor
field.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()
int
Subminor()
Returns the value of theSubminor
field.
-
-
-
Constructor Detail
-
CXVersion
public CXVersion(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
Major
public int Major()
Returns the value of theMajor
field.
-
Minor
public int Minor()
Returns the value of theMinor
field.
-
Subminor
public int Subminor()
Returns the value of theSubminor
field.
-
create
public static CXVersion create(long address)
Returns a newCXVersion
instance for the specified memory address.
-
createSafe
@Nullable public static CXVersion createSafe(long address)
-
create
public static CXVersion.Buffer create(long address, int capacity)
Create aCXVersion.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXVersion.Buffer createSafe(long address, int capacity)
-
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()
.
-
-