|
Electroneum
|
Functions | |
| mdb_size_t | count (MDB_cursor *cur) |
| std::pair< epee::span< const std::uint8_t >, epee::span< const std::uint8_t > > | get (MDB_cursor &cur, MDB_cursor_op op, std::size_t key, std::size_t value) |
| mdb_size_t lmdb::stream::count | ( | MDB_cursor * | cur | ) |
Definition at line 39 of file value_stream.cpp.

| std::pair< epee::span< const std::uint8_t >, epee::span< const std::uint8_t > > lmdb::stream::get | ( | MDB_cursor & | cur, |
| MDB_cursor_op | op, | ||
| std::size_t | key, | ||
| std::size_t | value | ||
| ) |
Calls mdb_cursor_get and does some error checking.
| cur | is given to mdb_cursor_get without modification. |
| op | is passed to mdb_cursor_get without modification. |
| key | expected key size or 0 to skip key size check. |
| value | expected value size or 0 to skip value size check. |
| std::system_error | if key != 0 and key_.mv_size != key. |
| std::system_error | if value != 0 and value_.mv_size != value. |
| std::system_error | if mdb_cursor_get returns any error other than MDB_NOTFOUND. |
MDB_NOTFOUND. Definition at line 52 of file value_stream.cpp.

