Package org.lwjgl.util.lmdb
Class MDBEnvInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lmdb.MDBEnvInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
public class MDBEnvInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInformation about the environment.Member documentation
me_mapaddr– Address of map, if fixed.me_mapsize– Size of the data memory map.me_last_pgno– ID of the last used page.me_last_txnid– ID of the last committed transaction.me_maxreaders– Max reader slots in the environment.me_numreaders– Max reader slots used in the environment.
Layout
struct MDB_envinfo { void * me_mapaddr; mdb_size_t me_mapsize; mdb_size_t me_last_pgno; mdb_size_t me_last_txnid; unsigned int me_maxreaders; unsigned int me_numreaders; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classMDBEnvInfo.BufferAn array ofMDBEnvInfostructs.
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor and Description MDBEnvInfo(java.nio.ByteBuffer container)Creates aMDBEnvInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static MDBEnvInfocalloc()Returns a newMDBEnvInfoinstance allocated withmemCalloc.static MDBEnvInfo.Buffercalloc(int capacity)Returns a newMDBEnvInfo.Bufferinstance allocated withmemCalloc.static MDBEnvInfocallocStack()Returns a newMDBEnvInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static MDBEnvInfo.BuffercallocStack(int capacity)Returns a newMDBEnvInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static MDBEnvInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBEnvInfocallocStack(org.lwjgl.system.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)static MDBEnvInfo.Buffercreate(long address, int capacity)Create aMDBEnvInfo.Bufferinstance at the specified memory.static MDBEnvInfomalloc()Returns a newMDBEnvInfoinstance allocated withmemAlloc.static MDBEnvInfo.Buffermalloc(int capacity)Returns a newMDBEnvInfo.Bufferinstance allocated withmemAlloc.static MDBEnvInfomallocStack()Returns a newMDBEnvInfoinstance allocated on the thread-localMemoryStack.static MDBEnvInfo.BuffermallocStack(int capacity)Returns a newMDBEnvInfo.Bufferinstance allocated on the thread-localMemoryStack.static MDBEnvInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStack.static MDBEnvInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStack.longme_last_pgno()Returns the value of theme_last_pgnofield.longme_last_txnid()Returns the value of theme_last_txnidfield.longme_mapaddr()Returns the value of theme_mapaddrfield.longme_mapsize()Returns the value of theme_mapsizefield.intme_maxreaders()Returns the value of theme_maxreadersfield.intme_numreaders()Returns the value of theme_numreadersfield.intsizeof()Returnssizeof(struct).
-
-
-
Constructor Detail
-
MDBEnvInfo
public MDBEnvInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:org.lwjgl.system.StructReturnssizeof(struct).- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
me_mapaddr
public long me_mapaddr()
Returns the value of theme_mapaddrfield.
-
me_mapsize
public long me_mapsize()
Returns the value of theme_mapsizefield.
-
me_last_pgno
public long me_last_pgno()
Returns the value of theme_last_pgnofield.
-
me_last_txnid
public long me_last_txnid()
Returns the value of theme_last_txnidfield.
-
me_maxreaders
public int me_maxreaders()
Returns the value of theme_maxreadersfield.
-
me_numreaders
public int me_numreaders()
Returns the value of theme_numreadersfield.
-
malloc
public static MDBEnvInfo malloc()
Returns a newMDBEnvInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static MDBEnvInfo calloc()
Returns a newMDBEnvInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static MDBEnvInfo create()
Returns a newMDBEnvInfoinstance allocated withBufferUtils.
-
create
public static MDBEnvInfo create(long address)
-
malloc
public static MDBEnvInfo.Buffer malloc(int capacity)
Returns a newMDBEnvInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static MDBEnvInfo.Buffer calloc(int capacity)
Returns a newMDBEnvInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static MDBEnvInfo.Buffer create(int capacity)
Returns a newMDBEnvInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static MDBEnvInfo.Buffer create(long address, int capacity)
Create aMDBEnvInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static MDBEnvInfo mallocStack()
Returns a newMDBEnvInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static MDBEnvInfo callocStack()
Returns a newMDBEnvInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static MDBEnvInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static MDBEnvInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static MDBEnvInfo.Buffer mallocStack(int capacity)
Returns a newMDBEnvInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static MDBEnvInfo.Buffer callocStack(int capacity)
Returns a newMDBEnvInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static MDBEnvInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static MDBEnvInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-