Base58 decoder which satisfy SliceTranscoder concept.
More...
#include <mdbx.h++>
Base58 decoder which satisfy SliceTranscoder concept.
◆ from_base58()
◆ as_buffer()
template<class ALLOCATOR = legacy_allocator, typename CAPACITY_POLICY = default_capacity_policy>
buffer<ALLOCATOR, CAPACITY_POLICY> mdbx::from_base58::as_buffer |
( |
const ALLOCATOR & |
allocator = ALLOCATOR() | ) |
const |
|
inline |
Decodes Base58 dump from a passed slice to returned buffer.
◆ as_string()
template<class ALLOCATOR = legacy_allocator>
string<ALLOCATOR> mdbx::from_base58::as_string |
( |
const ALLOCATOR & |
allocator = ALLOCATOR() | ) |
const |
|
inline |
Decodes Base58 dump from a passed slice to returned string.
◆ envisage_result_length()
Returns the number of bytes needed for conversion Base58 dump from a passed slice to decoded data.
◆ is_empty()
bool mdbx::from_base58::is_empty |
( |
| ) |
const |
|
inlinenoexcept |
Checks whether a passed slice is empty, and therefore there will be no output bytes.
◆ is_erroneous()
bool mdbx::from_base58::is_erroneous |
( |
| ) |
const |
|
noexcept |
Checks whether the content of a passed slice is a valid Base58 dump, and therefore there could be decoded or not.
◆ write_bytes()
char* mdbx::from_base58::write_bytes |
( |
char * |
dest, |
|
|
size_t |
dest_size |
|
) |
| const |
Fills the destination with data decoded from Base58 dump from a passed slice.
- Exceptions
-
std::length_error | if given buffer is too small. |
◆ ignore_spaces
const bool mdbx::from_base58::ignore_spaces = false |
◆ source
const slice mdbx::from_base58::source |
The documentation for this struct was generated from the following file: