midl.h(3)

πŸ“¦
version 0.9.35 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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