NCBI C++ ToolKit
Public Attributes | List of all members
MDB_val Struct Reference

Search Toolkit Book for MDB_val

Generic structure used for passing keys and data in and out of the database. More...

#include "lmdb.h"
(Private to src/util/lmdb.)

+ Collaboration diagram for MDB_val:

Public Attributes

size_t mv_size
 size of the data item More...
 
void * mv_data
 address of the data item More...
 

Detailed Description

Generic structure used for passing keys and data in and out of the database.

Values returned from the database are valid only until a subsequent update operation, or the end of the transaction. Do not modify or free them, they commonly point into the database itself.

Key sizes must be between 1 and mdb_env_get_maxkeysize() inclusive. The same applies to data sizes in databases with the MDB_DUPSORT flag. Other data items can in theory be from 0 to 0xffffffff bytes long.

Definition at line 257 of file lmdb.h.


The documentation for this struct was generated from the following file:
Modified on Sat Apr 13 11:44:07 2024 by modify_doxy.py rev. 669887