Skip to content

Struct mdbx::from_base64

ClassList > mdbx > from_base64

Base64 decoder which satisfySliceTranscoder concept.

  • #include <mdbx.h++>

Public Attributes

Type Name
const bool ignore_spaces = false
const slice source

Public Functions

Type Name
size_t envisage_result_length () noexcept const
Returns the number of bytes needed for conversion Base64 dump from a passed slice to decoded data.
constexpr from_base64 (const slice & source, bool ignore_spaces=false) noexcept
bool is_empty () noexcept const
Checks whether a passed slice is empty, and therefore there will be no output bytes.
bool is_erroneous () noexcept const
Checks whether the content of a passed slice is a valid Base64 dump, and therefore can be decoded without errors.
char * write_bytes (char * dest, size_t dest_size) const
Fills the destination with data decoded from Base64 dump from a passed slice.

Public Attributes Documentation

variable ignore_spaces

const bool mdbx::from_base64::ignore_spaces;

variable source

const slice mdbx::from_base64::source;

Public Functions Documentation

function envisage_result_length

Returns the number of bytes needed for conversion Base64 dump from a passed slice to decoded data.

inline size_t mdbx::from_base64::envisage_result_length () noexcept const

function from_base64

inline constexpr mdbx::from_base64::from_base64 (
    const slice & source,
    bool ignore_spaces=false
) noexcept

function is_empty

Checks whether a passed slice is empty, and therefore there will be no output bytes.

inline bool mdbx::from_base64::is_empty () noexcept const

function is_erroneous

Checks whether the content of a passed slice is a valid Base64 dump, and therefore can be decoded without errors.

bool mdbx::from_base64::is_erroneous () noexcept const

function write_bytes

Fills the destination with data decoded from Base64 dump from a passed slice.

char * mdbx::from_base64::write_bytes (
    char * dest,
    size_t dest_size
) const

Exception:

  • std::length_error if given buffer is too small.


The documentation for this class was generated from the following file docs/mdbx.h++