Package org.lwjgl.llvm
Class CXVersion
- All Implemented Interfaces:
Pointer
struct CXVersion {
int Major;
int Minor;
int Subminor;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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()intMinor()static intnMajor(long struct) Unsafe version ofMajor().static intnMinor(long struct) Unsafe version ofMinor().static intnSubminor(long struct) Unsafe version ofSubminor().intsizeof()Returnssizeof(struct).intSubminor()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 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()Description copied from class:StructReturnssizeof(struct). -
Major
public int Major()- Returns:
- the value of the
Majorfield.
-
Minor
public int Minor()- Returns:
- the value of the
Minorfield.
-
Subminor
public int Subminor()- Returns:
- the value of the
Subminorfield.
-
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().
-