Package org.lwjgl.nuklear
Class NkBufferMarker
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkBufferMarker
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkBufferMarker extends org.lwjgl.system.Struct
Layout
struct nk_buffer_marker { int active; nk_size offset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkBufferMarker.Buffer
An array ofNkBufferMarker
structs.
-
Constructor Summary
Constructors Constructor Description NkBufferMarker(java.nio.ByteBuffer container)
Creates aNkBufferMarker
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
active()
Returns the value of theactive
field.static NkBufferMarker
create(long address)
Returns a newNkBufferMarker
instance for the specified memory address.static NkBufferMarker.Buffer
create(long address, int capacity)
Create aNkBufferMarker.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 ofactive()
.static long
noffset(long struct)
Unsafe version ofoffset()
.long
offset()
Returns the value of theoffset
field.int
sizeof()
-
-
-
Constructor Detail
-
NkBufferMarker
public NkBufferMarker(java.nio.ByteBuffer container)
Creates aNkBufferMarker
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
active
public int active()
Returns the value of theactive
field.
-
offset
public long offset()
Returns the value of theoffset
field.
-
create
public static NkBufferMarker create(long address)
Returns a newNkBufferMarker
instance for the specified memory address.
-
createSafe
@Nullable public static NkBufferMarker createSafe(long address)
-
create
public static NkBufferMarker.Buffer create(long address, int capacity)
Create aNkBufferMarker.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkBufferMarker.Buffer createSafe(long address, int capacity)
-
nactive
public static int nactive(long struct)
Unsafe version ofactive()
.
-
noffset
public static long noffset(long struct)
Unsafe version ofoffset()
.
-
-