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.StructLayout
struct nk_buffer_marker { int active; nk_size offset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkBufferMarker.BufferAn array ofNkBufferMarkerstructs.
-
Constructor Summary
Constructors Constructor Description NkBufferMarker(java.nio.ByteBuffer container)Creates aNkBufferMarkerinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intactive()Returns the value of theactivefield.static NkBufferMarkercreate(long address)Returns a newNkBufferMarkerinstance for the specified memory address.static NkBufferMarker.Buffercreate(long address, int capacity)Create aNkBufferMarker.Bufferinstance at the specified memory.static NkBufferMarkercreateSafe(long address)static NkBufferMarker.BuffercreateSafe(long address, int capacity)static intnactive(long struct)Unsafe version ofactive().static longnoffset(long struct)Unsafe version ofoffset().longoffset()Returns the value of theoffsetfield.intsizeof()
-
-
-
Constructor Detail
-
NkBufferMarker
public NkBufferMarker(java.nio.ByteBuffer container)
Creates aNkBufferMarkerinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
active
public int active()
Returns the value of theactivefield.
-
offset
public long offset()
Returns the value of theoffsetfield.
-
create
public static NkBufferMarker create(long address)
Returns a newNkBufferMarkerinstance 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.Bufferinstance 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().
-
-