public class NkBufferMarker
extends org.lwjgl.system.Struct
struct nk_buffer_marker {
int active;
nk_size offset;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkBufferMarker.Buffer
An array of
NkBufferMarker structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkBufferMarker(java.nio.ByteBuffer container)
Creates a
NkBufferMarker instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
active()
Returns the value of the
active field. |
static NkBufferMarker |
create(long address)
Returns a new
NkBufferMarker instance for the specified memory address. |
static NkBufferMarker.Buffer |
create(long address,
int capacity)
Create a
NkBufferMarker.Buffer instance at the specified memory. |
static NkBufferMarker |
createSafe(long address)
|
static NkBufferMarker.Buffer |
createSafe(long address,
int capacity)
|
static int |
nactive(long struct)
Unsafe version of
active(). |
static long |
noffset(long struct)
Unsafe version of
offset(). |
long |
offset()
Returns the value of the
offset field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ACTIVE
public static final int OFFSET
public NkBufferMarker(java.nio.ByteBuffer container)
NkBufferMarker 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 int active()
active field.public long offset()
offset field.public static NkBufferMarker create(long address)
NkBufferMarker instance for the specified memory address.@Nullable public static NkBufferMarker createSafe(long address)
public static NkBufferMarker.Buffer create(long address, int capacity)
NkBufferMarker.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkBufferMarker.Buffer createSafe(long address, int capacity)
public static int nactive(long struct)
active().public static long noffset(long struct)
offset().Copyright LWJGL. All Rights Reserved. License terms.