struct nk_pool {
struct nk_allocator alloc;
enum nk_allocation_type type;
unsigned int page_count;
struct nk_page * pages;
struct nk_page_element * freelist;
unsigned capacity;
nk_size size;
nk_size cap;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkPool.
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 | CAP
The struct member offsets. |
| public static final int | CAPACITY
The struct member offsets. |
| public static final int | FREELIST
The struct member offsets. |
| public static final int | PAGE_COUNT
The struct member offsets. |
| public static final int | PAGES
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv | NkPool(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public NkAllocator | |
| public long | |
| public int | |
| protected NkPool | 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 NkPool | |
| public static NkPool. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkPool | |
| public static NkPool. | |
| public long | |
| public static NkAllocator | |
| public static long | |
| public static int | |
| public static long | |
| public static int | |
| public static long | |
| public static long | |
| public static int | |
| public int | |
| public long | |
| public long | |
| public int | |
| public int |
| 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. | |
| CAP | back to summary |
|---|---|
| public static final int CAP The struct member offsets. | |
| CAPACITY | back to summary |
|---|---|
| public static final int CAPACITY The struct member offsets. | |
| FREELIST | back to summary |
|---|---|
| public static final int FREELIST The struct member offsets. | |
| PAGE_COUNT | back to summary |
|---|---|
| public static final int PAGE_COUNT The struct member offsets. | |
| PAGES | back to summary |
|---|---|
| public static final int PAGES The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| NkPool | back to summary |
|---|---|
| protected NkPool(long address, ByteBuffer container) | |
| NkPool | back to summary |
|---|---|
| pack-priv NkPool(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| alloc | back to summary |
|---|---|
public NkAllocator alloc()
| |
| cap | back to summary |
|---|---|
public long cap()
| |
| capacity$ | back to summary |
|---|---|
public int capacity$()
| |
| create | back to summary |
|---|---|
| protected NkPool create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkPool create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkPool. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkPool createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkPool. Like
| |
| freelist | back to summary |
|---|---|
public long freelist()
| |
| nalloc | back to summary |
|---|---|
| public static NkAllocator nalloc(long struct) Unsafe version of | |
| ncap | back to summary |
|---|---|
| public static long ncap(long struct) Unsafe version of | |
| ncapacity$ | back to summary |
|---|---|
| public static int ncapacity$(long struct) Unsafe version of | |
| nfreelist | back to summary |
|---|---|
| public static long nfreelist(long struct) Unsafe version of | |
| npage_count | back to summary |
|---|---|
| public static int npage_count(long struct) Unsafe version of | |
| npages | back to summary |
|---|---|
| public static long npages(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static long nsize(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| page_count | back to summary |
|---|---|
public int page_count()
| |
| pages | back to summary |
|---|---|
public long pages()
| |
| size | back to summary |
|---|---|
public long size()
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
public int type()
| |
NkPool structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkPool |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public NkAllocator | |
| public long | |
| public int | |
| public long | |
| protected NkPool | |
| public int | |
| public long | |
| protected NkPool. | |
| public long | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkPool 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 NkAllocator alloc()
| |
| cap | back to summary |
|---|---|
public long cap()
| |
| capacity$ | back to summary |
|---|---|
public int capacity$()
| |
| freelist | back to summary |
|---|---|
public long freelist()
| |
| getElementFactory | back to summary |
|---|---|
| protected NkPool getElementFactory() Implements abstract org.
| |
| page_count | back to summary |
|---|---|
public int page_count()
| |
| pages | back to summary |
|---|---|
public long pages()
| |
| self | back to summary |
|---|---|
| protected NkPool. Implements abstract org.
| |
| size | back to summary |
|---|---|
public long size()
| |
| type | back to summary |
|---|---|
public int type()
| |