struct nk_allocator {
nk_handle userdata;
nk_plugin_alloc alloc;
nk_plugin_free mfree;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkAllocator.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALLOC
The struct member offsets. |
| public static final int | MFREE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | USERDATA
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkAllocator(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public NkPluginAlloc | |
| public NkAllocator | |
| public static NkAllocator | |
| public static NkAllocator. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkAllocator | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkAllocator. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkAllocator | |
| public static NkAllocator | |
| public static NkAllocator. | |
| public static NkAllocator. | |
| protected NkAllocator | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NkAllocator | |
| public static NkAllocator | |
| public static NkAllocator. | create(int
the buffer capacity capacity)Returns a new |
| public static NkAllocator. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkAllocator | |
| public static NkAllocator. | |
| public static NkAllocator | |
| public static NkAllocator. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkAllocator | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkAllocator. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkAllocator | |
| public static NkAllocator | |
| public static NkAllocator. | |
| public static NkAllocator. | |
| public NkPluginFree | |
| public NkAllocator | |
| public static NkPluginAlloc | |
| public static void | |
| public static NkPluginFree | |
| public static void | |
| public static NkHandle | |
| public static void | |
| public NkAllocator | set(NkHandle userdata, NkPluginAllocI alloc, NkPluginFreeI mfree)
Initializes this struct with the specified values. |
| public NkAllocator | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public NkHandle | |
| public NkAllocator | |
| public NkAllocator |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ALLOC | back to summary |
|---|---|
| public static final int ALLOC The struct member offsets. | |
| MFREE | back to summary |
|---|---|
| public static final int MFREE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| USERDATA | back to summary |
|---|---|
| public static final int USERDATA The struct member offsets. | |
| NkAllocator | back to summary |
|---|---|
| protected NkAllocator(long address, ByteBuffer container) | |
| NkAllocator | back to summary |
|---|---|
| public NkAllocator(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| alloc | back to summary |
|---|---|
public NkPluginAlloc alloc()
| |
| alloc | back to summary |
|---|---|
| public NkAllocator alloc(NkPluginAllocI value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static NkAllocator calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkAllocator. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkAllocator calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkAllocator. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NkAllocator callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkAllocator callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkAllocator. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkAllocator. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected NkAllocator create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkAllocator create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkAllocator create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkAllocator. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkAllocator. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkAllocator createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkAllocator. Like
| |
| malloc | back to summary |
|---|---|
| public static NkAllocator malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkAllocator. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkAllocator malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkAllocator. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NkAllocator mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkAllocator mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkAllocator. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkAllocator. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mfree | back to summary |
|---|---|
public NkPluginFree mfree()
| |
| mfree | back to summary |
|---|---|
| public NkAllocator mfree(NkPluginFreeI value) Sets the specified value to the | |
| nalloc | back to summary |
|---|---|
| public static NkPluginAlloc nalloc(long struct) Unsafe version of
| |
| nalloc | back to summary |
|---|---|
| public static void nalloc(long struct, NkPluginAllocI value) Unsafe version of | |
| nmfree | back to summary |
|---|---|
| public static NkPluginFree nmfree(long struct) Unsafe version of
| |
| nmfree | back to summary |
|---|---|
| public static void nmfree(long struct, NkPluginFreeI value) Unsafe version of | |
| nuserdata | back to summary |
|---|---|
| public static NkHandle nuserdata(long struct) Unsafe version of | |
| nuserdata | back to summary |
|---|---|
| public static void nuserdata(long struct, NkHandle value) Unsafe version of | |
| set | back to summary |
|---|---|
| public NkAllocator set(NkHandle userdata, NkPluginAllocI alloc, NkPluginFreeI mfree) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkAllocator set(NkAllocator src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| userdata | back to summary |
|---|---|
public NkHandle userdata()
| |
| userdata | back to summary |
|---|---|
| public NkAllocator userdata(NkHandle value) Copies the specified | |
| userdata | back to summary |
|---|---|
| public NkAllocator userdata(Consumer<NkHandle> consumer) Passes the | |
NkAllocator structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkAllocator |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public NkPluginAlloc | |
| public NkAllocator. | |
| protected NkAllocator | |
| public NkPluginFree | |
| public NkAllocator. | |
| protected NkAllocator. | |
| public NkHandle | |
| public NkAllocator. | |
| public NkAllocator. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkAllocator ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| alloc | back to summary |
|---|---|
public NkPluginAlloc alloc()
| |
| alloc | back to summary |
|---|---|
| public NkAllocator. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected NkAllocator getElementFactory() Implements abstract org.
| |
| mfree | back to summary |
|---|---|
public NkPluginFree mfree()
| |
| mfree | back to summary |
|---|---|
| public NkAllocator. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected NkAllocator. Implements abstract org.
| |
| userdata | back to summary |
|---|---|
public NkHandle userdata()
| |
| userdata | back to summary |
|---|---|
| public NkAllocator. Copies the specified | |
| userdata | back to summary |
|---|---|
| public NkAllocator. Passes the | |