Package org.lwjgl.util.lmdb
Class MDBEnvInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct MDB_envinfo {
void * me_mapaddr;
size_t me_mapsize;
size_t me_last_pgno;
size_t me_last_txnid;
unsigned int me_maxreaders;
unsigned int me_numreaders;
}-
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
ConstructorsConstructorDescriptionMDBEnvInfo(ByteBuffer container) Creates aMDBEnvInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MDBEnvInfocalloc()Returns a newMDBEnvInfoinstance allocated withmemCalloc.static MDBEnvInfo.Buffercalloc(int capacity) Returns a newMDBEnvInfo.Bufferinstance allocated withmemCalloc.static MDBEnvInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBEnvInfocalloc(MemoryStack stack) Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBEnvInfocreate()Returns a newMDBEnvInfoinstance allocated withBufferUtils.static MDBEnvInfo.Buffercreate(int capacity) Returns a newMDBEnvInfo.Bufferinstance allocated withBufferUtils.static MDBEnvInfocreate(long address) Returns a newMDBEnvInfoinstance for the specified memory address.static MDBEnvInfo.Buffercreate(long address, int capacity) Create aMDBEnvInfo.Bufferinstance at the specified memory.static @Nullable MDBEnvInfocreateSafe(long address) static @Nullable MDBEnvInfo.BuffercreateSafe(long address, int capacity) static MDBEnvInfomalloc()Returns a newMDBEnvInfoinstance allocated withmemAlloc.static MDBEnvInfo.Buffermalloc(int capacity) Returns a newMDBEnvInfo.Bufferinstance allocated withmemAlloc.static MDBEnvInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStack.static MDBEnvInfomalloc(MemoryStack stack) Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStack.longlonglonglongintintstatic longnme_last_pgno(long struct) Unsafe version ofme_last_pgno().static longnme_last_txnid(long struct) Unsafe version ofme_last_txnid().static longnme_mapaddr(long struct) Unsafe version ofme_mapaddr().static longnme_mapsize(long struct) Unsafe version ofme_mapsize().static intnme_maxreaders(long struct) Unsafe version ofme_maxreaders().static intnme_numreaders(long struct) Unsafe version ofme_numreaders().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. -
ME_MAPADDR
public static final int ME_MAPADDRThe struct member offsets. -
ME_MAPSIZE
public static final int ME_MAPSIZEThe struct member offsets. -
ME_LAST_PGNO
public static final int ME_LAST_PGNOThe struct member offsets. -
ME_LAST_TXNID
public static final int ME_LAST_TXNIDThe struct member offsets. -
ME_MAXREADERS
public static final int ME_MAXREADERSThe struct member offsets. -
ME_NUMREADERS
public static final int ME_NUMREADERSThe struct member offsets.
-
-
Constructor Details
-
MDBEnvInfo
Creates aMDBEnvInfoinstance 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).- Specified by:
sizeofin classStruct<MDBEnvInfo>
-
me_mapaddr
public long me_mapaddr()- Returns:
- the value of the
me_mapaddrfield.
-
me_mapsize
public long me_mapsize()- Returns:
- the value of the
me_mapsizefield.
-
me_last_pgno
public long me_last_pgno()- Returns:
- the value of the
me_last_pgnofield.
-
me_last_txnid
public long me_last_txnid()- Returns:
- the value of the
me_last_txnidfield.
-
me_maxreaders
public int me_maxreaders()- Returns:
- the value of the
me_maxreadersfield.
-
me_numreaders
public int me_numreaders()- Returns:
- the value of the
me_numreadersfield.
-
malloc
Returns a newMDBEnvInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMDBEnvInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMDBEnvInfoinstance allocated withBufferUtils. -
create
Returns a newMDBEnvInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newMDBEnvInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMDBEnvInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMDBEnvInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMDBEnvInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nme_mapaddr
public static long nme_mapaddr(long struct) Unsafe version ofme_mapaddr(). -
nme_mapsize
public static long nme_mapsize(long struct) Unsafe version ofme_mapsize(). -
nme_last_pgno
public static long nme_last_pgno(long struct) Unsafe version ofme_last_pgno(). -
nme_last_txnid
public static long nme_last_txnid(long struct) Unsafe version ofme_last_txnid(). -
nme_maxreaders
public static int nme_maxreaders(long struct) Unsafe version ofme_maxreaders(). -
nme_numreaders
public static int nme_numreaders(long struct) Unsafe version ofme_numreaders().
-