Base58 encoder which satisfy SliceTranscoder concept.
More...
#include <mdbx.h++>
Base58 encoder which satisfy SliceTranscoder concept.
◆ to_base58()
◆ as_buffer()
template<class ALLOCATOR = legacy_allocator, typename CAPACITY_POLICY = default_capacity_policy>
buffer<ALLOCATOR, CAPACITY_POLICY> mdbx::to_base58::as_buffer |
( |
const ALLOCATOR & |
allocator = ALLOCATOR() | ) |
const |
|
inline |
Returns a buffer with a Base58 dump of a passed slice.
◆ as_string()
template<class ALLOCATOR = legacy_allocator>
string<ALLOCATOR> mdbx::to_base58::as_string |
( |
const ALLOCATOR & |
allocator = ALLOCATOR() | ) |
const |
|
inline |
Returns a string with a Base58 dump of a passed slice.
◆ envisage_result_length()
Returns the buffer size in bytes needed for Base58 dump of passed slice.
◆ is_empty()
bool mdbx::to_base58::is_empty |
( |
| ) |
const |
|
inlinenoexcept |
Checks whether a passed slice is empty, and therefore there will be no output bytes.
◆ is_erroneous()
bool mdbx::to_base58::is_erroneous |
( |
| ) |
const |
|
inlinenoexcept |
Checks whether the content of a passed slice is a valid data and could be encoded or unexpectedly not.
◆ output()
::std::ostream& mdbx::to_base58::output |
( |
::std::ostream & |
out | ) |
const |
Output Base58 dump of passed slice to the std::ostream.
- Exceptions
-
std::ios_base::failure | corresponding to std::ostream::write() behaviour. |
◆ write_bytes()
char* mdbx::to_base58::write_bytes |
( |
char * |
dest, |
|
|
size_t |
dest_size |
|
) |
| const |
Fills the buffer by Base58 dump of passed slice.
- Exceptions
-
std::length_error | if given buffer is too small. |
◆ source
const slice mdbx::to_base58::source |
◆ wrap_width
const unsigned mdbx::to_base58::wrap_width = 0 |
The documentation for this struct was generated from the following file: