midl.h(3)
π midl.h β LMDB ID List header file π
okay bestie, sit down, hydrate, because we're about to read a header file together and it's genuinely so cute. this is a page from the Library Functions Manual, and it's all about midl.h β literally the LMDB ID List header file. it's giving internal-libmdb-secret-menu energy and i'm obsessed. π
β¨ SYNOPSIS β¨
#include <stddef.h>
π§Έ Data Structures
struct MDB_ID2
πΈ Macros
#define MDB_IDL_LOGN 16 /* DB_SIZE is 2^16, UM_SIZE is 2^17 */
#define MDB_IDL_DB_SIZE (1<<MDB_IDL_LOGN)
#define MDB_IDL_UM_SIZE (1<<(MDB_IDL_LOGN+1))
#define MDB_IDL_DB_MAX (MDB_IDL_DB_SIZE-1)
#define MDB_IDL_UM_MAX (MDB_IDL_UM_SIZE-1)
#define MDB_IDL_SIZEOF(ids)
#define MDB_IDL_IS_ZERO(ids)
#define MDB_IDL_CPY(dst, src)
#define MDB_IDL_FIRST(ids)
#define MDB_IDL_LAST(ids)
#define MDB_IDL_ALLOCLEN(ids)
#define mdb_midl_xappend(idl, id)
π¦ Typedefs
typedef size_t MDB_ID
typedef MDB_ID * MDB_IDL
typedef MDB_ID2 * MDB_ID2L
π Functions
unsigned mdb_midl_search (MDB_IDL ids, MDB_ID id)
MDB_IDL mdb_midl_alloc (int num)
void mdb_midl_free (MDB_IDL ids)
void mdb_midl_shrink (MDB_IDL *idp)
int mdb_midl_need (MDB_IDL *idp, unsigned num)
int mdb_midl_append (MDB_IDL *idp, MDB_ID id)
int mdb_midl_append_list (MDB_IDL *idp, MDB_IDL app)
int mdb_midl_append_range (MDB_IDL *idp, MDB_ID id, unsigned n)
void mdb_midl_xmerge (MDB_IDL idl, MDB_IDL merge)
void mdb_midl_sort (MDB_IDL ids)
unsigned mdb_mid2l_search (MDB_ID2L ids, MDB_ID id)
int mdb_mid2l_insert (MDB_ID2L ids, MDB_ID2 *id)
int mdb_mid2l_append (MDB_ID2L ids, MDB_ID2 *id)
π₯ Detailed Description π₯
LMDB ID List header file. that's it, that's the whole vibe. π
okay so real talk: this file was originally part of back-bdb, but it got modified for use in libmdb. and the way that most of the macros defined in this file are unused, just left over from the original β like old screenshots in your camera roll you can't bring yourself to delete. π iconic but lowkey useless.
and listen: this file is only used internally in libmdb, and its definitions are not exposed publicly. so no cap, this is backstage-pass-only content. main character energy but private account. πβ¨
π Author
Generated automatically by Doxygen for LMDB from the source code. so yeah, no human wrote this, it just manifested. ππ
heads up bestie: this is an internal header, so don't go building your whole personality around it in public code, mmmkay?
anyway, that's the whole page β it's midl.h from section 3 of the LMDB manual, documented by Doxygen, and you understood it. slay. periodt. π
π¦πΈ
π¦ where this page comes from
- ubuntu resolute: lmdb-doc 0.9.31-1build2 Β· OpenLDAP-2.8
- ubuntu stonking: lmdb-doc 0.9.35-1 Β· OpenLDAP-2.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms