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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aMDBStatinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MDBStatcalloc()Returns a newMDBStatinstance allocated withmemCalloc.static MDBStat.Buffercalloc(int capacity) Returns a newMDBStat.Bufferinstance allocated withmemCalloc.static MDBStat.Buffercalloc(int capacity, MemoryStack stack) Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBStatcalloc(MemoryStack stack) Returns a newMDBStatinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBStatcreate()Returns a newMDBStatinstance allocated withBufferUtils.static MDBStat.Buffercreate(int capacity) Returns a newMDBStat.Bufferinstance allocated withBufferUtils.static MDBStatcreate(long address) Returns a newMDBStatinstance for the specified memory address.static MDBStat.Buffercreate(long address, int capacity) Create aMDBStat.Bufferinstance at the specified memory.static @Nullable MDBStatcreateSafe(long address) static @Nullable MDBStat.BuffercreateSafe(long address, int capacity) static MDBStatmalloc()Returns a newMDBStatinstance allocated withmemAlloc.static MDBStat.Buffermalloc(int capacity) Returns a newMDBStat.Bufferinstance allocated withmemAlloc.static MDBStat.Buffermalloc(int capacity, MemoryStack stack) Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStack.static MDBStatmalloc(MemoryStack stack) Returns a newMDBStatinstance allocated on the specifiedMemoryStack.longintms_depth()longlonglongintms_psize()static longnms_branch_pages(long struct) Unsafe version ofms_branch_pages().static intnms_depth(long struct) Unsafe version ofms_depth().static longnms_entries(long struct) Unsafe version ofms_entries().static longnms_leaf_pages(long struct) Unsafe version ofms_leaf_pages().static longnms_overflow_pages(long struct) Unsafe version ofms_overflow_pages().static intnms_psize(long struct) Unsafe version ofms_psize().intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aMDBStatinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct). -
ms_psize
public int ms_psize()- Returns:
- the value of the
ms_psizefield.
-
ms_depth
public int ms_depth()- Returns:
- the value of the
ms_depthfield.
-
ms_branch_pages
public long ms_branch_pages()- Returns:
- the value of the
ms_branch_pagesfield.
-
ms_leaf_pages
public long ms_leaf_pages()- Returns:
- the value of the
ms_leaf_pagesfield.
-
ms_overflow_pages
public long ms_overflow_pages()- Returns:
- the value of the
ms_overflow_pagesfield.
-
ms_entries
public long ms_entries()- Returns:
- the value of the
ms_entriesfield.
-
malloc
Returns a newMDBStatinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMDBStatinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMDBStatinstance allocated withBufferUtils. -
create
Returns a newMDBStatinstance for the specified memory address. -
createSafe
-
malloc
Returns a newMDBStat.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMDBStat.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMDBStat.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMDBStat.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newMDBStatinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMDBStatinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStackand 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().
-