Package org.lwjgl.util.lmdb
Class MDBStat
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionMDBStat
(ByteBuffer container) Creates aMDBStat
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic MDBStat
calloc()
Returns a newMDBStat
instance allocated withmemCalloc
.static MDBStat.Buffer
calloc
(int capacity) Returns a newMDBStat.Buffer
instance allocated withmemCalloc
.static MDBStat.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newMDBStat.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MDBStat
calloc
(MemoryStack stack) Returns a newMDBStat
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MDBStat
Deprecated.static MDBStat.Buffer
callocStack
(int capacity) Deprecated.static MDBStat.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static MDBStat
callocStack
(MemoryStack stack) Deprecated.static MDBStat
create()
Returns a newMDBStat
instance allocated withBufferUtils
.static MDBStat.Buffer
create
(int capacity) Returns a newMDBStat.Buffer
instance allocated withBufferUtils
.static MDBStat
create
(long address) Returns a newMDBStat
instance for the specified memory address.static MDBStat.Buffer
create
(long address, int capacity) Create aMDBStat.Buffer
instance at the specified memory.static @Nullable MDBStat
createSafe
(long address) static @Nullable MDBStat.Buffer
createSafe
(long address, int capacity) static MDBStat
malloc()
Returns a newMDBStat
instance allocated withmemAlloc
.static MDBStat.Buffer
malloc
(int capacity) Returns a newMDBStat.Buffer
instance allocated withmemAlloc
.static MDBStat.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newMDBStat.Buffer
instance allocated on the specifiedMemoryStack
.static MDBStat
malloc
(MemoryStack stack) Returns a newMDBStat
instance allocated on the specifiedMemoryStack
.static MDBStat
Deprecated.static MDBStat.Buffer
mallocStack
(int capacity) Deprecated.static MDBStat.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static MDBStat
mallocStack
(MemoryStack stack) Deprecated.long
int
ms_depth()
long
long
long
int
ms_psize()
static long
nms_branch_pages
(long struct) Unsafe version ofms_branch_pages()
.static int
nms_depth
(long struct) Unsafe version ofms_depth()
.static long
nms_entries
(long struct) Unsafe version ofms_entries()
.static long
nms_leaf_pages
(long struct) Unsafe version ofms_leaf_pages()
.static long
nms_overflow_pages
(long struct) Unsafe version ofms_overflow_pages()
.static int
nms_psize
(long struct) Unsafe version ofms_psize()
.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MS_PSIZE
public static final int MS_PSIZEThe struct member offsets. -
MS_DEPTH
public static final int MS_DEPTHThe struct member offsets. -
MS_BRANCH_PAGES
public static final int MS_BRANCH_PAGESThe struct member offsets. -
MS_LEAF_PAGES
public static final int MS_LEAF_PAGESThe struct member offsets. -
MS_OVERFLOW_PAGES
public static final int MS_OVERFLOW_PAGESThe struct member offsets. -
MS_ENTRIES
public static final int MS_ENTRIESThe struct member offsets.
-
-
Constructor Details
-
MDBStat
Creates aMDBStat
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
ms_psize
public int ms_psize()- Returns:
- the value of the
ms_psize
field.
-
ms_depth
public int ms_depth()- Returns:
- the value of the
ms_depth
field.
-
ms_branch_pages
public long ms_branch_pages()- Returns:
- the value of the
ms_branch_pages
field.
-
ms_leaf_pages
public long ms_leaf_pages()- Returns:
- the value of the
ms_leaf_pages
field.
-
ms_overflow_pages
public long ms_overflow_pages()- Returns:
- the value of the
ms_overflow_pages
field.
-
ms_entries
public long ms_entries()- Returns:
- the value of the
ms_entries
field.
-
malloc
Returns a newMDBStat
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newMDBStat
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newMDBStat
instance allocated withBufferUtils
. -
create
Returns a newMDBStat
instance for the specified memory address. -
createSafe
-
malloc
Returns a newMDBStat.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newMDBStat.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newMDBStat.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aMDBStat.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newMDBStat
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newMDBStat
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newMDBStat.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newMDBStat.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nms_psize
public static int nms_psize(long struct) Unsafe version ofms_psize()
. -
nms_depth
public static int nms_depth(long struct) Unsafe version ofms_depth()
. -
nms_branch_pages
public static long nms_branch_pages(long struct) Unsafe version ofms_branch_pages()
. -
nms_leaf_pages
public static long nms_leaf_pages(long struct) Unsafe version ofms_leaf_pages()
. -
nms_overflow_pages
public static long nms_overflow_pages(long struct) Unsafe version ofms_overflow_pages()
. -
nms_entries
public static long nms_entries(long struct) Unsafe version ofms_entries()
.
-