MDB_node Struct Reference
[LMDB Internals]

Data Fields

unsigned short mn_lo
unsigned short mn_hi
unsigned short mn_flags
unsigned short mn_ksize
char mn_data [1]

Detailed Description

Header for a single key/data pair within a page. Used in pages of type P_BRANCH and P_LEAF without P_LEAF2. We guarantee 2-byte alignment for 'MDB_node's.


Field Documentation

unsigned short MDB_node::mn_lo

lo and hi are used for data size on leaf nodes and for child pgno on branch nodes. On 64 bit platforms, flags is also used for pgno. (Branch nodes have no flags). They are in host byte order in case that lets some accesses be optimized into a 32-bit word access.

unsigned short MDB_node::mn_hi

part of data size or pgno

unsigned short MDB_node::mn_flags
unsigned short MDB_node::mn_ksize

key size

key and data are appended here


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 15 Feb 2016 for LMDB by  doxygen 1.6.1