public class CXToken
extends org.lwjgl.system.Struct
struct CXToken {
unsigned int_data[4];
void * ptr_data;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXToken.Buffer
An array of
CXToken structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INT_DATA
The struct member offsets.
|
static int |
PTR_DATA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXToken(java.nio.ByteBuffer container)
Creates a
CXToken instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXToken |
create(long address)
Returns a new
CXToken instance for the specified memory address. |
static CXToken.Buffer |
create(long address,
int capacity)
Create a
CXToken.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 a
IntBuffer view of the int_data field. |
int |
int_data(int index)
Returns the value at the specified index of the
int_data field. |
static java.nio.IntBuffer |
nint_data(long struct)
Unsafe version of
int_data(). |
static int |
nint_data(long struct,
int index)
Unsafe version of
int_data. |
static long |
nptr_data(long struct)
Unsafe version of
ptr_data(). |
long |
ptr_data()
Returns the value of the
ptr_data field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int INT_DATA
public static final int PTR_DATA
public CXToken(java.nio.ByteBuffer container)
CXToken instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.IntBuffer int_data()
IntBuffer view of the int_data field.public int int_data(int index)
int_data field.public long ptr_data()
ptr_data field.public static CXToken create(long address)
CXToken instance for the specified memory address.@Nullable public static CXToken createSafe(long address)
public static CXToken.Buffer create(long address, int capacity)
CXToken.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXToken.Buffer createSafe(long address, int capacity)
public static java.nio.IntBuffer nint_data(long struct)
int_data().public static int nint_data(long struct,
int index)
int_data.public static long nptr_data(long struct)
ptr_data().Copyright LWJGL. All Rights Reserved. License terms.