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.Layout
struct MDB_envinfo { void *me_mapaddr(); size_tme_mapsize(); size_tme_last_pgno(); size_tme_last_txnid(); unsigned intme_maxreaders(); unsigned intme_numreaders(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMDBEnvInfo.BufferAn array ofMDBEnvInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intME_LAST_PGNO
ME_LAST_TXNID
ME_MAPADDR
ME_MAPSIZE
ME_MAXREADERS
ME_NUMREADERSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor 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 Deprecated Methods Modifier and Type Method Description static MDBEnvInfocalloc()Returns a newMDBEnvInfoinstance allocated withmemCalloc.static MDBEnvInfo.Buffercalloc(int capacity)Returns a newMDBEnvInfo.Bufferinstance allocated withmemCalloc.static MDBEnvInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBEnvInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBEnvInfocallocStack()Deprecated.static MDBEnvInfo.BuffercallocStack(int capacity)Deprecated.static MDBEnvInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static MDBEnvInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 MDBEnvInfocreateSafe(long address)static 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, org.lwjgl.system.MemoryStack stack)Returns a newMDBEnvInfo.Bufferinstance allocated on the specifiedMemoryStack.static MDBEnvInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStack.static MDBEnvInfomallocStack()Deprecated.static MDBEnvInfo.BuffermallocStack(int capacity)Deprecated.static MDBEnvInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static MDBEnvInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longme_last_pgno()ID of the last used page.longme_last_txnid()ID of the last committed transaction.longme_mapaddr()Address of map, if fixed.longme_mapsize()Size of the data memory map.intme_maxreaders()Max reader slots in the environment.intme_numreaders()Max reader slots used in the environment.static 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()
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
me_mapaddr
public long me_mapaddr()
Address of map, if fixed.
-
me_mapsize
public long me_mapsize()
Size of the data memory map.
-
me_last_pgno
public long me_last_pgno()
ID of the last used page.
-
me_last_txnid
public long me_last_txnid()
ID of the last committed transaction.
-
me_maxreaders
public int me_maxreaders()
Max reader slots in the environment.
-
me_numreaders
public int me_numreaders()
Max reader slots used in the environment.
-
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)
Returns a newMDBEnvInfoinstance for the specified memory address.
-
createSafe
@Nullable public static MDBEnvInfo createSafe(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
-
createSafe
@Nullable public static MDBEnvInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static MDBEnvInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MDBEnvInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MDBEnvInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MDBEnvInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MDBEnvInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static MDBEnvInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static MDBEnvInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static MDBEnvInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static MDBEnvInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newMDBEnvInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static MDBEnvInfo calloc(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
-
malloc
public static MDBEnvInfo.Buffer malloc(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
-
calloc
public static MDBEnvInfo.Buffer calloc(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
-
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().
-
-