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