public class NkHandle
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
union nk_handle {
void * ptr;
int id;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkHandle.Buffer
An array of
NkHandle structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ID
The struct member offsets.
|
static int |
PTR
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkHandle(java.nio.ByteBuffer container)
Creates a
NkHandle instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkHandle |
calloc()
Returns a new
NkHandle instance allocated with memCalloc. |
static NkHandle.Buffer |
calloc(int capacity)
Returns a new
NkHandle.Buffer instance allocated with memCalloc. |
static NkHandle |
callocStack()
Returns a new
NkHandle instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkHandle.Buffer |
callocStack(int capacity)
Returns a new
NkHandle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkHandle.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkHandle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkHandle |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkHandle instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkHandle |
create()
Returns a new
NkHandle instance allocated with BufferUtils. |
static NkHandle.Buffer |
create(int capacity)
Returns a new
NkHandle.Buffer instance allocated with BufferUtils. |
static NkHandle |
create(long address)
Returns a new
NkHandle instance for the specified memory address. |
static NkHandle.Buffer |
create(long address,
int capacity)
Create a
NkHandle.Buffer instance at the specified memory. |
static NkHandle |
createSafe(long address)
|
static NkHandle.Buffer |
createSafe(long address,
int capacity)
|
int |
id()
Returns the value of the
id field. |
NkHandle |
id(int value)
Sets the specified value to the
id field. |
static NkHandle |
malloc()
Returns a new
NkHandle instance allocated with memAlloc. |
static NkHandle.Buffer |
malloc(int capacity)
Returns a new
NkHandle.Buffer instance allocated with memAlloc. |
static NkHandle |
mallocStack()
Returns a new
NkHandle instance allocated on the thread-local MemoryStack. |
static NkHandle.Buffer |
mallocStack(int capacity)
Returns a new
NkHandle.Buffer instance allocated on the thread-local MemoryStack. |
static NkHandle.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkHandle.Buffer instance allocated on the specified MemoryStack. |
static NkHandle |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkHandle instance allocated on the specified MemoryStack. |
static int |
nid(long struct)
Unsafe version of
id(). |
static void |
nid(long struct,
int value)
Unsafe version of
id. |
static long |
nptr(long struct)
Unsafe version of
ptr(). |
static void |
nptr(long struct,
long value)
Unsafe version of
ptr. |
long |
ptr()
Returns the value of the
ptr field. |
NkHandle |
ptr(long value)
Sets the specified value to the
ptr field. |
NkHandle |
set(NkHandle src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PTR
public static final int ID
public NkHandle(java.nio.ByteBuffer container)
NkHandle 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 long ptr()
ptr field.public int id()
id field.public NkHandle ptr(long value)
ptr field.public NkHandle id(int value)
id field.public NkHandle set(NkHandle src)
src - the source structpublic static NkHandle malloc()
NkHandle instance allocated with memAlloc. The instance must be explicitly freed.public static NkHandle calloc()
NkHandle instance allocated with memCalloc. The instance must be explicitly freed.public static NkHandle create()
NkHandle instance allocated with BufferUtils.public static NkHandle create(long address)
NkHandle instance for the specified memory address.@Nullable public static NkHandle createSafe(long address)
public static NkHandle.Buffer malloc(int capacity)
NkHandle.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkHandle.Buffer calloc(int capacity)
NkHandle.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkHandle.Buffer create(int capacity)
NkHandle.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkHandle.Buffer create(long address, int capacity)
NkHandle.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkHandle.Buffer createSafe(long address, int capacity)
public static NkHandle mallocStack()
NkHandle instance allocated on the thread-local MemoryStack.public static NkHandle callocStack()
NkHandle instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkHandle mallocStack(org.lwjgl.system.MemoryStack stack)
NkHandle instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkHandle callocStack(org.lwjgl.system.MemoryStack stack)
NkHandle instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkHandle.Buffer mallocStack(int capacity)
NkHandle.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkHandle.Buffer callocStack(int capacity)
NkHandle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkHandle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkHandle.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkHandle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkHandle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nptr(long struct)
ptr().public static int nid(long struct)
id().public static void nptr(long struct,
long value)
ptr.public static void nid(long struct,
int value)
id.Copyright LWJGL. All Rights Reserved. License terms.