Class MDBStat

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MDBStat>
org.lwjgl.util.lmdb.MDBStat
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

@NativeType("struct MDB_stat") public class MDBStat extends org.lwjgl.system.Struct<MDBStat> implements org.lwjgl.system.NativeResource
struct MDB_stat {
    unsigned int ms_psize;
    unsigned int ms_depth;
    mdb_size_t ms_branch_pages;
    mdb_size_t ms_leaf_pages;
    mdb_size_t ms_overflow_pages;
    mdb_size_t ms_entries;
}
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of MDBStat structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    MDBStat(ByteBuffer container)
    Creates a MDBStat instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    static MDBStat
    Returns a new MDBStat instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new MDBStat.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new MDBStat.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static MDBStat
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new MDBStat instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static MDBStat
    Returns a new MDBStat instance allocated with BufferUtils.
    create(int capacity)
    Returns a new MDBStat.Buffer instance allocated with BufferUtils.
    static MDBStat
    create(long address)
    Returns a new MDBStat instance for the specified memory address.
    create(long address, int capacity)
    Create a MDBStat.Buffer instance at the specified memory.
    static @Nullable MDBStat
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable MDBStat.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    static MDBStat
    Returns a new MDBStat instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new MDBStat.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new MDBStat.Buffer instance allocated on the specified MemoryStack.
    static MDBStat
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new MDBStat instance allocated on the specified MemoryStack.
    long
     
    int
     
    long
     
    long
     
    long
     
    int
     
    static long
    nms_branch_pages(long struct)
    Unsafe version of ms_branch_pages().
    static int
    nms_depth(long struct)
    Unsafe version of ms_depth().
    static long
    nms_entries(long struct)
    Unsafe version of ms_entries().
    static long
    nms_leaf_pages(long struct)
    Unsafe version of ms_leaf_pages().
    static long
    nms_overflow_pages(long struct)
    Unsafe version of ms_overflow_pages().
    static int
    nms_psize(long struct)
    Unsafe version of ms_psize().
    int
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MS_PSIZE

      public static final int MS_PSIZE
      The struct member offsets.
    • MS_DEPTH

      public static final int MS_DEPTH
      The struct member offsets.
    • MS_BRANCH_PAGES

      public static final int MS_BRANCH_PAGES
      The struct member offsets.
    • MS_LEAF_PAGES

      public static final int MS_LEAF_PAGES
      The struct member offsets.
    • MS_OVERFLOW_PAGES

      public static final int MS_OVERFLOW_PAGES
      The struct member offsets.
    • MS_ENTRIES

      public static final int MS_ENTRIES
      The struct member offsets.
  • Constructor Details

    • MDBStat

      public MDBStat(ByteBuffer container)
      Creates a MDBStat 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.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<MDBStat>
    • ms_psize

      @NativeType("unsigned int") public int ms_psize()
      Returns:
      the value of the ms_psize field.
    • ms_depth

      @NativeType("unsigned int") public int ms_depth()
      Returns:
      the value of the ms_depth field.
    • ms_branch_pages

      @NativeType("mdb_size_t") public long ms_branch_pages()
      Returns:
      the value of the ms_branch_pages field.
    • ms_leaf_pages

      @NativeType("mdb_size_t") public long ms_leaf_pages()
      Returns:
      the value of the ms_leaf_pages field.
    • ms_overflow_pages

      @NativeType("mdb_size_t") public long ms_overflow_pages()
      Returns:
      the value of the ms_overflow_pages field.
    • ms_entries

      @NativeType("mdb_size_t") public long ms_entries()
      Returns:
      the value of the ms_entries field.
    • malloc

      public static MDBStat malloc()
      Returns a new MDBStat instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static MDBStat calloc()
      Returns a new MDBStat instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static MDBStat create()
      Returns a new MDBStat instance allocated with BufferUtils.
    • create

      public static MDBStat create(long address)
      Returns a new MDBStat instance for the specified memory address.
    • createSafe

      public static @Nullable MDBStat createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static MDBStat.Buffer malloc(int capacity)
      Returns a new MDBStat.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static MDBStat.Buffer calloc(int capacity)
      Returns a new MDBStat.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static MDBStat.Buffer create(int capacity)
      Returns a new MDBStat.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static MDBStat.Buffer create(long address, int capacity)
      Create a MDBStat.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable MDBStat.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static MDBStat malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new MDBStat instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static MDBStat calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new MDBStat instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static MDBStat.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new MDBStat.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static MDBStat.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new MDBStat.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nms_psize

      public static int nms_psize(long struct)
      Unsafe version of ms_psize().
    • nms_depth

      public static int nms_depth(long struct)
      Unsafe version of ms_depth().
    • nms_branch_pages

      public static long nms_branch_pages(long struct)
      Unsafe version of ms_branch_pages().
    • nms_leaf_pages

      public static long nms_leaf_pages(long struct)
      Unsafe version of ms_leaf_pages().
    • nms_overflow_pages

      public static long nms_overflow_pages(long struct)
      Unsafe version of ms_overflow_pages().
    • nms_entries

      public static long nms_entries(long struct)
      Unsafe version of ms_entries().