Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lmdb_helpers.cpp File Reference
#include "barretenberg/lmdblib/lmdb_helpers.hpp"
#include "barretenberg/numeric/uint256/uint256.hpp"
#include "lmdb.h"
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <functional>
#include <vector>
#include <sys/types.h>

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::lmdblib
 

Functions

void bb::lmdblib::throw_error (const std::string &errorString, int error)
 
std::vector< uint8_t > bb::lmdblib::serialise_key (uint8_t key)
 
void bb::lmdblib::deserialise_key (void *data, uint8_t &key)
 
std::vector< uint8_t > bb::lmdblib::serialise_key (uint64_t key)
 
void bb::lmdblib::deserialise_key (void *data, uint64_t &key)
 
std::vector< uint8_t > bb::lmdblib::serialise_key (const uint256_t &key)
 
void bb::lmdblib::deserialise_key (void *data, uint256_t &key)
 
int bb::lmdblib::size_cmp (const MDB_val *a, const MDB_val *b)
 
std::vector< uint8_t > bb::lmdblib::mdb_val_to_vector (const MDB_val &dbVal)
 
void bb::lmdblib::copy_to_vector (const MDB_val &dbVal, std::vector< uint8_t > &target)