stbrp_context struct.
struct stbrp_context {
int width;
int height;
int align;
int init_mode;
int heuristic;
int num_nodes;
stbrp_node * active_head;
stbrp_node * free_head;
stbrp_node extra[2];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | STBRPContext.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACTIVE_HEAD
The struct member offsets. |
| public static final int | ALIGN
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | EXTRA
The struct member offsets. |
| public static final int | FREE_HEAD
The struct member offsets. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | HEURISTIC
The struct member offsets. |
| public static final int | INIT_MODE
The struct member offsets. |
| public static final int | NUM_NODES
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | WIDTH
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | STBRPContext(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public STBRPNode | |
| public int | |
| public static STBRPContext | |
| public static STBRPContext. | calloc(int
the buffer capacity capacity)Returns a new |
| public static STBRPContext | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBRPContext. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBRPContext | |
| public static STBRPContext | |
| public static STBRPContext. | |
| public static STBRPContext. | |
| protected STBRPContext | 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 STBRPContext | |
| public static STBRPContext | |
| public static STBRPContext. | create(int
the buffer capacity capacity)Returns a new |
| public static STBRPContext. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static STBRPContext | |
| public static STBRPContext. | |
| public STBRPNode. | |
| public STBRPNode | |
| public STBRPNode | |
| public int | |
| public int | |
| public int | |
| public static STBRPContext | |
| public static STBRPContext. | malloc(int
the buffer capacity capacity)Returns a new |
| public static STBRPContext | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBRPContext. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBRPContext | |
| public static STBRPContext | |
| public static STBRPContext. | |
| public static STBRPContext. | |
| public static STBRPNode | |
| public static int | |
| public static STBRPNode. | |
| public static STBRPNode | |
| public static STBRPNode | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public int | |
| public static int | |
| public int | |
| public int |
| ACTIVE_HEAD | back to summary |
|---|---|
| public static final int ACTIVE_HEAD The struct member offsets. | |
| ALIGN | back to summary |
|---|---|
| public static final int ALIGN The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| EXTRA | back to summary |
|---|---|
| public static final int EXTRA The struct member offsets. | |
| FREE_HEAD | back to summary |
|---|---|
| public static final int FREE_HEAD The struct member offsets. | |
| HEIGHT | back to summary |
|---|---|
| public static final int HEIGHT The struct member offsets. | |
| HEURISTIC | back to summary |
|---|---|
| public static final int HEURISTIC The struct member offsets. | |
| INIT_MODE | back to summary |
|---|---|
| public static final int INIT_MODE The struct member offsets. | |
| NUM_NODES | back to summary |
|---|---|
| public static final int NUM_NODES The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| WIDTH | back to summary |
|---|---|
| public static final int WIDTH The struct member offsets. | |
| STBRPContext | back to summary |
|---|---|
| protected STBRPContext(long address, ByteBuffer container) | |
| STBRPContext | back to summary |
|---|---|
| public STBRPContext(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| active_head | back to summary |
|---|---|
public STBRPNode active_head()
| |
| align | back to summary |
|---|---|
public int align()
| |
| calloc | back to summary |
|---|---|
| public static STBRPContext calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static STBRPContext. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBRPContext calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBRPContext. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static STBRPContext callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBRPContext callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBRPContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBRPContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected STBRPContext create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static STBRPContext create() Returns a new | |
| create | back to summary |
|---|---|
| public static STBRPContext create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static STBRPContext. Returns a new
| |
| create | back to summary |
|---|---|
| public static STBRPContext. Create a
| |
| createSafe | back to summary |
|---|---|
| public static STBRPContext createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static STBRPContext. Like
| |
| extra | back to summary |
|---|---|
| public STBRPNode. we allocate two extra nodes so optimal user-node-count is
| |
| extra | back to summary |
|---|---|
| public STBRPNode extra(int index) we allocate two extra nodes so optimal user-node-count is
| |
| free_head | back to summary |
|---|---|
public STBRPNode free_head()
| |
| height | back to summary |
|---|---|
public int height()
| |
| heuristic | back to summary |
|---|---|
public int heuristic()
| |
| init_mode | back to summary |
|---|---|
public int init_mode()
| |
| malloc | back to summary |
|---|---|
| public static STBRPContext malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static STBRPContext. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBRPContext malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBRPContext. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static STBRPContext mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBRPContext mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBRPContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBRPContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nactive_head | back to summary |
|---|---|
| public static STBRPNode nactive_head(long struct) Unsafe version of
| |
| nalign | back to summary |
|---|---|
| public static int nalign(long struct) Unsafe version of | |
| nextra | back to summary |
|---|---|
| public static STBRPNode. Unsafe version of | |
| nextra | back to summary |
|---|---|
| public static STBRPNode nextra(long struct, int index) Unsafe version of | |
| nfree_head | back to summary |
|---|---|
| public static STBRPNode nfree_head(long struct) Unsafe version of
| |
| nheight | back to summary |
|---|---|
| public static int nheight(long struct) Unsafe version of | |
| nheuristic | back to summary |
|---|---|
| public static int nheuristic(long struct) Unsafe version of | |
| ninit_mode | back to summary |
|---|---|
| public static int ninit_mode(long struct) Unsafe version of | |
| nnum_nodes | back to summary |
|---|---|
| public static int nnum_nodes(long struct) Unsafe version of | |
| num_nodes | back to summary |
|---|---|
public int num_nodes()
| |
| nwidth | back to summary |
|---|---|
| public static int nwidth(long struct) Unsafe version of | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| width | back to summary |
|---|---|
public int width()
| |
STBRPContext structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final STBRPContext |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public STBRPNode | |
| public int | |
| public STBRPNode. | |
| public STBRPNode | |
| public STBRPNode | |
| protected STBRPContext | |
| public int | |
| public int | |
| public int | |
| public int | |
| protected STBRPContext. | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final STBRPContext 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) | |
| active_head | back to summary |
|---|---|
public STBRPNode active_head()
| |
| align | back to summary |
|---|---|
public int align()
| |
| extra | back to summary |
|---|---|
public STBRPNode.
| |
| extra | back to summary |
|---|---|
public STBRPNode extra(int index)
| |
| free_head | back to summary |
|---|---|
public STBRPNode free_head()
| |
| getElementFactory | back to summary |
|---|---|
| protected STBRPContext getElementFactory() Implements abstract org.
| |
| height | back to summary |
|---|---|
public int height()
| |
| heuristic | back to summary |
|---|---|
public int heuristic()
| |
| init_mode | back to summary |
|---|---|
public int init_mode()
| |
| num_nodes | back to summary |
|---|---|
public int num_nodes()
| |
| self | back to summary |
|---|---|
| protected STBRPContext. Implements abstract org.
| |
| width | back to summary |
|---|---|
public int width()
| |