Package org.lwjgl.llvm
Class CXToken
- All Implemented Interfaces:
Pointer
Describes a single preprocessing token.
Layout
struct CXToken {
unsigned int_data[4];
void * ptr_data;
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCXToken
(ByteBuffer container) Creates aCXToken
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXToken
create
(long address) Returns a newCXToken
instance for the specified memory address.static CXToken.Buffer
create
(long address, int capacity) Create aCXToken.Buffer
instance at the specified memory.static CXToken
createSafe
(long address) static CXToken.Buffer
createSafe
(long address, int capacity) int_data()
int
int_data
(int index) static IntBuffer
nint_data
(long struct) Unsafe version ofint_data()
.static int
nint_data
(long struct, int index) Unsafe version ofint_data
.static long
nptr_data
(long struct) Unsafe version ofptr_data()
.long
ptr_data()
int
sizeof()
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 aCXToken
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)
. -
int_data
- Returns:
- a
IntBuffer
view of theint_data
field.
-
int_data
public int int_data(int index) - Returns:
- the value at the specified index of the
int_data
field.
-
ptr_data
public long ptr_data()- Returns:
- the value of the
ptr_data
field.
-
create
Returns a newCXToken
instance for the specified memory address. -
createSafe
-
create
Create aCXToken.Buffer
instance 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()
.
-