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.StructDescribes a version number of the formmajor.minor.subminor.Layout
struct CXVersion { intMajor(); intMinor(); intSubminor(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXVersion.BufferAn array ofCXVersionstructs.
-
Constructor Summary
Constructors Constructor Description CXVersion(java.nio.ByteBuffer container)Creates aCXVersioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 CXVersioncreateSafe(long address)static 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'.
-
-
-
Constructor Detail
-
CXVersion
public CXVersion(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.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
public static CXVersion create(long address)
Returns a newCXVersioninstance 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.Bufferinstance 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().
-
-