public class MDBStat
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
ms_psize – Size of a database page. This is currently the same for all databases.ms_depth – Depth (height) of the B-tree.ms_branch_pages – Number of internal (non-leaf) pages.ms_leaf_pages – Number of leaf pages.ms_overflow_pages – Number of overflow pages.ms_entries – Number of data items.
struct MDB_stat {
unsigned int ms_psize;
unsigned int ms_depth;
size_t ms_branch_pages;
size_t ms_leaf_pages;
size_t ms_overflow_pages;
size_t ms_entries;
}| Modifier and Type | Class and Description |
|---|---|
static class |
MDBStat.Buffer
An array of
MDBStat structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MS_BRANCH_PAGES
The struct member offsets.
|
static int |
MS_DEPTH
The struct member offsets.
|
static int |
MS_ENTRIES
The struct member offsets.
|
static int |
MS_LEAF_PAGES
The struct member offsets.
|
static int |
MS_OVERFLOW_PAGES
The struct member offsets.
|
static int |
MS_PSIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
MDBStat(java.nio.ByteBuffer container)
Creates a
MDBStat instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static MDBStat |
calloc()
Returns a new
MDBStat instance allocated with memCalloc. |
static MDBStat.Buffer |
calloc(int capacity)
Returns a new
MDBStat.Buffer instance allocated with memCalloc. |
static MDBStat |
callocStack()
Returns a new
MDBStat instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MDBStat.Buffer |
callocStack(int capacity)
Returns a new
MDBStat.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MDBStat.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MDBStat.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MDBStat |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MDBStat instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MDBStat |
create()
Returns a new
MDBStat instance allocated with BufferUtils. |
static MDBStat.Buffer |
create(int capacity)
Returns a new
MDBStat.Buffer instance allocated with BufferUtils. |
static MDBStat |
create(long address)
Returns a new
MDBStat instance for the specified memory address. |
static MDBStat.Buffer |
create(long address,
int capacity)
Create a
MDBStat.Buffer instance at the specified memory. |
static MDBStat |
createSafe(long address)
|
static MDBStat.Buffer |
createSafe(long address,
int capacity)
|
static MDBStat |
malloc()
Returns a new
MDBStat instance allocated with memAlloc. |
static MDBStat.Buffer |
malloc(int capacity)
Returns a new
MDBStat.Buffer instance allocated with memAlloc. |
static MDBStat |
mallocStack()
Returns a new
MDBStat instance allocated on the thread-local MemoryStack. |
static MDBStat.Buffer |
mallocStack(int capacity)
Returns a new
MDBStat.Buffer instance allocated on the thread-local MemoryStack. |
static MDBStat.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MDBStat.Buffer instance allocated on the specified MemoryStack. |
static MDBStat |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MDBStat instance allocated on the specified MemoryStack. |
long |
ms_branch_pages()
Returns the value of the
ms_branch_pages field. |
int |
ms_depth()
Returns the value of the
ms_depth field. |
long |
ms_entries()
Returns the value of the
ms_entries field. |
long |
ms_leaf_pages()
Returns the value of the
ms_leaf_pages field. |
long |
ms_overflow_pages()
Returns the value of the
ms_overflow_pages field. |
int |
ms_psize()
Returns the value of the
ms_psize field. |
static long |
nms_branch_pages(long struct)
Unsafe version of
ms_branch_pages(). |
static int |
nms_depth(long struct)
Unsafe version of
ms_depth(). |
static long |
nms_entries(long struct)
Unsafe version of
ms_entries(). |
static long |
nms_leaf_pages(long struct)
Unsafe version of
ms_leaf_pages(). |
static long |
nms_overflow_pages(long struct)
Unsafe version of
ms_overflow_pages(). |
static int |
nms_psize(long struct)
Unsafe version of
ms_psize(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MS_PSIZE
public static final int MS_DEPTH
public static final int MS_BRANCH_PAGES
public static final int MS_LEAF_PAGES
public static final int MS_OVERFLOW_PAGES
public static final int MS_ENTRIES
public MDBStat(java.nio.ByteBuffer container)
MDBStat instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int ms_psize()
ms_psize field.public int ms_depth()
ms_depth field.public long ms_branch_pages()
ms_branch_pages field.public long ms_leaf_pages()
ms_leaf_pages field.public long ms_overflow_pages()
ms_overflow_pages field.public long ms_entries()
ms_entries field.public static MDBStat malloc()
MDBStat instance allocated with memAlloc. The instance must be explicitly freed.public static MDBStat calloc()
MDBStat instance allocated with memCalloc. The instance must be explicitly freed.public static MDBStat create()
MDBStat instance allocated with BufferUtils.public static MDBStat create(long address)
MDBStat instance for the specified memory address.@Nullable public static MDBStat createSafe(long address)
public static MDBStat.Buffer malloc(int capacity)
MDBStat.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MDBStat.Buffer calloc(int capacity)
MDBStat.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MDBStat.Buffer create(int capacity)
MDBStat.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static MDBStat.Buffer create(long address, int capacity)
MDBStat.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static MDBStat.Buffer createSafe(long address, int capacity)
public static MDBStat mallocStack()
MDBStat instance allocated on the thread-local MemoryStack.public static MDBStat callocStack()
MDBStat instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static MDBStat mallocStack(org.lwjgl.system.MemoryStack stack)
MDBStat instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static MDBStat callocStack(org.lwjgl.system.MemoryStack stack)
MDBStat instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static MDBStat.Buffer mallocStack(int capacity)
MDBStat.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static MDBStat.Buffer callocStack(int capacity)
MDBStat.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static MDBStat.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MDBStat.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static MDBStat.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MDBStat.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nms_psize(long struct)
ms_psize().public static int nms_depth(long struct)
ms_depth().public static long nms_branch_pages(long struct)
ms_branch_pages().public static long nms_leaf_pages(long struct)
ms_leaf_pages().public static long nms_overflow_pages(long struct)
ms_overflow_pages().public static long nms_entries(long struct)
ms_entries().Copyright LWJGL. All Rights Reserved. License terms.