public class NkMemory
extends org.lwjgl.system.Struct
struct nk_memory {
void * ptr;
nk_size size;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkMemory.Buffer
An array of
NkMemory structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PTR
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkMemory(java.nio.ByteBuffer container)
Creates a
NkMemory instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkMemory |
create(long address)
Returns a new
NkMemory instance for the specified memory address. |
static NkMemory.Buffer |
create(long address,
int capacity)
Create a
NkMemory.Buffer instance at the specified memory. |
static NkMemory |
createSafe(long address)
|
static NkMemory.Buffer |
createSafe(long address,
int capacity)
|
static java.nio.ByteBuffer |
nptr(long struct)
Unsafe version of
ptr. |
static long |
nsize(long struct)
Unsafe version of
size(). |
java.nio.ByteBuffer |
ptr()
Returns a
ByteBuffer view of the data pointed to by the ptr field. |
long |
size()
Returns the value of the
size field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PTR
public static final int SIZE
public NkMemory(java.nio.ByteBuffer container)
NkMemory 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.Struct@Nullable public java.nio.ByteBuffer ptr()
ByteBuffer view of the data pointed to by the ptr field.public long size()
size field.public static NkMemory create(long address)
NkMemory instance for the specified memory address.@Nullable public static NkMemory createSafe(long address)
public static NkMemory.Buffer create(long address, int capacity)
NkMemory.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkMemory.Buffer createSafe(long address, int capacity)
@Nullable public static java.nio.ByteBuffer nptr(long struct)
ptr.public static long nsize(long struct)
size().Copyright LWJGL. All Rights Reserved. License terms.