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.StructDescribes 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 classCXToken.BufferAn array ofCXTokenstructs.
-
Constructor Summary
Constructors Constructor Description CXToken(java.nio.ByteBuffer container)Creates aCXTokeninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 CXTokencreateSafe(long address)static CXToken.BuffercreateSafe(long address, int capacity)java.nio.IntBufferint_data()intint_data(int index)static java.nio.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()
-
-
-
Constructor Detail
-
CXToken
public CXToken(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
int_data
public java.nio.IntBuffer 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
public static CXToken create(long address)
Returns a newCXTokeninstance 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.Bufferinstance 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().
-
-