Package org.lwjgl.llvm
Class CXToken
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXToken
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class CXToken extends org.lwjgl.system.Struct
Describes a single preprocessing token.Layout
struct CXToken { unsigned int_data[4]; void * ptr_data; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXToken.Buffer
An array ofCXToken
structs.
-
Constructor Summary
Constructors Constructor Description CXToken(java.nio.ByteBuffer container)
Creates aCXToken
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 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)
java.nio.IntBuffer
int_data()
Returns aIntBuffer
view of theint_data
field.int
int_data(int index)
Returns the value at the specified index of theint_data
field.static java.nio.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()
Returns the value of theptr_data
field.int
sizeof()
-
-
-
Constructor Detail
-
CXToken
public CXToken(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
int_data
public java.nio.IntBuffer int_data()
Returns aIntBuffer
view of theint_data
field.
-
int_data
public int int_data(int index)
Returns the value at the specified index of theint_data
field.
-
ptr_data
public long ptr_data()
Returns the value of theptr_data
field.
-
create
public static CXToken create(long address)
Returns a newCXToken
instance for the specified memory address.
-
createSafe
@Nullable public static CXToken createSafe(long address)
-
create
public static CXToken.Buffer create(long address, int capacity)
Create aCXToken.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXToken.Buffer createSafe(long address, int capacity)
-
nint_data
public static java.nio.IntBuffer nint_data(long struct)
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()
.
-
-