#include <dbwrapper.h>
Definition at line 182 of file dbwrapper.h.
◆ CDBWrapper() [1/2]
CDBWrapper::CDBWrapper |
( |
const DBParams & |
params | ) |
|
◆ ~CDBWrapper()
CDBWrapper::~CDBWrapper |
( |
| ) |
|
◆ CDBWrapper() [2/2]
◆ CreateObfuscateKey()
std::vector< unsigned char > CDBWrapper::CreateObfuscateKey |
( |
| ) |
const |
|
private |
Returns a string (consisting of 8 random bytes) suitable for use as an obfuscating XOR key.
Definition at line 332 of file dbwrapper.cpp.
◆ DBContext()
auto & CDBWrapper::DBContext |
( |
| ) |
const |
|
inlineprivate |
◆ DynamicMemoryUsage()
size_t CDBWrapper::DynamicMemoryUsage |
( |
| ) |
const |
◆ Erase()
bool CDBWrapper::Erase |
( |
const K & |
key, |
|
|
bool |
fSync = false |
|
) |
| |
|
inline |
◆ EstimateSize()
size_t CDBWrapper::EstimateSize |
( |
const K & |
key_begin, |
|
|
const K & |
key_end |
|
) |
| const |
|
inline |
◆ EstimateSizeImpl()
size_t CDBWrapper::EstimateSizeImpl |
( |
Span< const std::byte > |
key1, |
|
|
Span< const std::byte > |
key2 |
|
) |
| const |
|
private |
◆ Exists()
bool CDBWrapper::Exists |
( |
const K & |
key | ) |
const |
|
inline |
◆ ExistsImpl()
bool CDBWrapper::ExistsImpl |
( |
Span< const std::byte > |
key | ) |
const |
|
private |
◆ IsEmpty()
bool CDBWrapper::IsEmpty |
( |
| ) |
|
Return true if the database managed by this class contains no entries.
Definition at line 378 of file dbwrapper.cpp.
◆ NewIterator()
◆ operator=()
◆ Read()
template<typename
K , typename V >
bool CDBWrapper::Read |
( |
const K & |
key, |
|
|
V & |
value |
|
) |
| const |
|
inline |
◆ ReadImpl()
std::optional< std::string > CDBWrapper::ReadImpl |
( |
Span< const std::byte > |
key | ) |
const |
|
private |
◆ StoragePath()
std::optional< fs::path > CDBWrapper::StoragePath |
( |
| ) |
|
|
inline |
- Returns
- filesystem path to the on-disk data.
Definition at line 250 of file dbwrapper.h.
◆ Write()
template<typename
K , typename V >
bool CDBWrapper::Write |
( |
const K & |
key, |
|
|
const V & |
value, |
|
|
bool |
fSync = false |
|
) |
| |
|
inline |
◆ WriteBatch()
bool CDBWrapper::WriteBatch |
( |
CDBBatch & |
batch, |
|
|
bool |
fSync = false |
|
) |
| |
◆ dbwrapper_private::GetObfuscateKey
◆ m_db_context
holds all leveldb-specific fields of this class
Definition at line 187 of file dbwrapper.h.
◆ m_is_memory
bool CDBWrapper::m_is_memory |
|
private |
whether or not the database resides in memory
Definition at line 207 of file dbwrapper.h.
◆ m_name
std::string CDBWrapper::m_name |
|
private |
◆ m_path
path to filesystem storage
Definition at line 204 of file dbwrapper.h.
◆ obfuscate_key
std::vector<unsigned char> CDBWrapper::obfuscate_key |
|
private |
a key used for optional XOR-obfuscation of the database
Definition at line 193 of file dbwrapper.h.
◆ OBFUSCATE_KEY_KEY
const std::string CDBWrapper::OBFUSCATE_KEY_KEY |
|
staticprivate |
the key under which the obfuscation key is stored
Definition at line 196 of file dbwrapper.h.
◆ OBFUSCATE_KEY_NUM_BYTES
const unsigned int CDBWrapper::OBFUSCATE_KEY_NUM_BYTES = 8 |
|
staticprivate |
the length of the obfuscate key in number of bytes
Definition at line 199 of file dbwrapper.h.
The documentation for this class was generated from the following files: