public class MDBEnvInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
MDBEnvInfo.Buffer
An array of
MDBEnvInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ME_LAST_PGNO
The struct member offsets.
|
static int |
ME_LAST_TXNID
The struct member offsets.
|
static int |
ME_MAPADDR
The struct member offsets.
|
static int |
ME_MAPSIZE
The struct member offsets.
|
static int |
ME_MAXREADERS
The struct member offsets.
|
static int |
ME_NUMREADERS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
MDBEnvInfo(java.nio.ByteBuffer container)
Creates a
MDBEnvInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static MDBEnvInfo |
calloc()
Returns a new
MDBEnvInfo instance allocated with memCalloc. |
static MDBEnvInfo.Buffer |
calloc(int capacity)
Returns a new
MDBEnvInfo.Buffer instance allocated with memCalloc. |
static MDBEnvInfo |
callocStack()
Returns a new
MDBEnvInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MDBEnvInfo.Buffer |
callocStack(int capacity)
Returns a new
MDBEnvInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MDBEnvInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MDBEnvInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MDBEnvInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MDBEnvInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MDBEnvInfo |
create()
Returns a new
MDBEnvInfo instance allocated with BufferUtils. |
static MDBEnvInfo.Buffer |
create(int capacity)
Returns a new
MDBEnvInfo.Buffer instance allocated with BufferUtils. |
static MDBEnvInfo |
create(long address)
Returns a new
MDBEnvInfo instance for the specified memory address. |
static MDBEnvInfo.Buffer |
create(long address,
int capacity)
Create a
MDBEnvInfo.Buffer instance at the specified memory. |
static MDBEnvInfo |
createSafe(long address)
|
static MDBEnvInfo.Buffer |
createSafe(long address,
int capacity)
|
static MDBEnvInfo |
malloc()
Returns a new
MDBEnvInfo instance allocated with memAlloc. |
static MDBEnvInfo.Buffer |
malloc(int capacity)
Returns a new
MDBEnvInfo.Buffer instance allocated with memAlloc. |
static MDBEnvInfo |
mallocStack()
Returns a new
MDBEnvInfo instance allocated on the thread-local MemoryStack. |
static MDBEnvInfo.Buffer |
mallocStack(int capacity)
Returns a new
MDBEnvInfo.Buffer instance allocated on the thread-local MemoryStack. |
static MDBEnvInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MDBEnvInfo.Buffer instance allocated on the specified MemoryStack. |
static MDBEnvInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MDBEnvInfo instance allocated on the specified MemoryStack. |
long |
me_last_pgno()
Returns the value of the
me_last_pgno field. |
long |
me_last_txnid()
Returns the value of the
me_last_txnid field. |
long |
me_mapaddr()
Returns the value of the
me_mapaddr field. |
long |
me_mapsize()
Returns the value of the
me_mapsize field. |
int |
me_maxreaders()
Returns the value of the
me_maxreaders field. |
int |
me_numreaders()
Returns the value of the
me_numreaders field. |
static long |
nme_last_pgno(long struct)
Unsafe version of
me_last_pgno(). |
static long |
nme_last_txnid(long struct)
Unsafe version of
me_last_txnid(). |
static long |
nme_mapaddr(long struct)
Unsafe version of
me_mapaddr(). |
static long |
nme_mapsize(long struct)
Unsafe version of
me_mapsize(). |
static int |
nme_maxreaders(long struct)
Unsafe version of
me_maxreaders(). |
static int |
nme_numreaders(long struct)
Unsafe version of
me_numreaders(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ME_MAPADDR
public static final int ME_MAPSIZE
public static final int ME_LAST_PGNO
public static final int ME_LAST_TXNID
public static final int ME_MAXREADERS
public static final int ME_NUMREADERS
public MDBEnvInfo(java.nio.ByteBuffer container)
MDBEnvInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long me_mapaddr()
me_mapaddr field.public long me_mapsize()
me_mapsize field.public long me_last_pgno()
me_last_pgno field.public long me_last_txnid()
me_last_txnid field.public int me_maxreaders()
me_maxreaders field.public int me_numreaders()
me_numreaders field.public static MDBEnvInfo malloc()
MDBEnvInfo instance allocated with memAlloc. The instance must be explicitly freed.public static MDBEnvInfo calloc()
MDBEnvInfo instance allocated with memCalloc. The instance must be explicitly freed.public static MDBEnvInfo create()
MDBEnvInfo instance allocated with BufferUtils.public static MDBEnvInfo create(long address)
MDBEnvInfo instance for the specified memory address.@Nullable public static MDBEnvInfo createSafe(long address)
public static MDBEnvInfo.Buffer malloc(int capacity)
MDBEnvInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MDBEnvInfo.Buffer calloc(int capacity)
MDBEnvInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MDBEnvInfo.Buffer create(int capacity)
MDBEnvInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static MDBEnvInfo.Buffer create(long address, int capacity)
MDBEnvInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static MDBEnvInfo.Buffer createSafe(long address, int capacity)
public static MDBEnvInfo mallocStack()
MDBEnvInfo instance allocated on the thread-local MemoryStack.public static MDBEnvInfo callocStack()
MDBEnvInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static MDBEnvInfo mallocStack(org.lwjgl.system.MemoryStack stack)
MDBEnvInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static MDBEnvInfo callocStack(org.lwjgl.system.MemoryStack stack)
MDBEnvInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static MDBEnvInfo.Buffer mallocStack(int capacity)
MDBEnvInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static MDBEnvInfo.Buffer callocStack(int capacity)
MDBEnvInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static MDBEnvInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MDBEnvInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static MDBEnvInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MDBEnvInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nme_mapaddr(long struct)
me_mapaddr().public static long nme_mapsize(long struct)
me_mapsize().public static long nme_last_pgno(long struct)
me_last_pgno().public static long nme_last_txnid(long struct)
me_last_txnid().public static int nme_maxreaders(long struct)
me_maxreaders().public static int nme_numreaders(long struct)
me_numreaders().Copyright LWJGL. All Rights Reserved. License terms.