Package org.lwjgl.llvm
Class CXToken
- All Implemented Interfaces:
Pointer
struct CXToken {
unsigned int_data[4];
void * ptr_data;
}-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCXToken(ByteBuffer container) Creates aCXTokeninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXTokencreate(long address) Returns a newCXTokeninstance for the specified memory address.static CXToken.Buffercreate(long address, int capacity) Create aCXToken.Bufferinstance at the specified memory.static @Nullable CXTokencreateSafe(long address) static @Nullable CXToken.BuffercreateSafe(long address, int capacity) int_data()intint_data(int index) static IntBuffernint_data(long struct) Unsafe version ofint_data().static intnint_data(long struct, int index) Unsafe version ofint_data.static longnptr_data(long struct) Unsafe version ofptr_data().longptr_data()intsizeof()Returnssizeof(struct).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. -
INT_DATA
public static final int INT_DATAThe struct member offsets. -
PTR_DATA
public static final int PTR_DATAThe struct member offsets.
-
-
Constructor Details
-
CXToken
Creates aCXTokeninstance 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). -
int_data
- Returns:
- a
IntBufferview of theint_datafield.
-
int_data
public int int_data(int index) - Returns:
- the value at the specified index of the
int_datafield.
-
ptr_data
public long ptr_data()- Returns:
- the value of the
ptr_datafield.
-
create
Returns a newCXTokeninstance for the specified memory address. -
createSafe
-
create
Create aCXToken.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nint_data
Unsafe version ofint_data(). -
nint_data
public static int nint_data(long struct, int index) Unsafe version ofint_data. -
nptr_data
public static long nptr_data(long struct) Unsafe version ofptr_data().
-