Functions | |
| bool | isValid (const char *str, size_t str_size) noexcept |
| bool | isValid (std::string_view str) noexcept |
| size_t | sizeEncoded (std::span< const uint8_t > data) |
| size_t | sizeDecoded (std::string_view str) noexcept |
| void | encode (const uint8_t *data, size_t data_size, char *str, size_t str_size) |
| std::string | encode (std::span< const uint8_t > data) |
| void | decode (const char *str, size_t str_size, uint8_t *data, size_t data_size) |
| std::vector< uint8_t > | decode (std::string_view str) |
Variables | |
| const char | digits [65] |
| const uint8_t | map [256] |
|
noexcept |
|
noexcept |
| str | string or string_view which you want to decode |
| size_t base64::sizeEncoded | ( | std::span< const uint8_t > | data | ) |
| data | vector or span of data which you want to encode |
| basen::Exception(OVERFLOW) | if there is an overflow |
|
noexcept |
| str | string or string_view which you want to decode |
| void base64::encode | ( | const uint8_t * | data, |
| size_t | data_size, | ||
| char * | str, | ||
| size_t | str_size ) |
| data | [in] pointer to data which you want encode |
| str | [out] pointer to string for encoded data output |
| basen::Exception(OVERFLOW) | from base64::sizeEncoded |
| basen::Exception(LENGTH) | if not enough allocated length |
| std::string base64::encode | ( | std::span< const uint8_t > | data | ) |
| data | vector or span of data which you want to encode |
| basen::Exception(OVERFLOW) | from base64::sizeEncoded |
| basen::Exception(LENGTH) | if not enough allocated length |
| void base64::decode | ( | const char * | str, |
| size_t | str_size, | ||
| uint8_t * | data, | ||
| size_t | data_size ) |
| str | [in] pointer to string which you want decode |
| data | [out] pointer to data for encoded string output |
| basen::Exception(LENGTH) | if not enough allocated length |
| basen::Exception(OUT_OF_ALPH) | if out of digits map |
| basen::Exception(PADDING) | if incorrect padding |
| std::vector< uint8_t > base64::decode | ( | std::string_view | str | ) |
| str | string or string_view which you want to decode |
| basen::Exception(LENGTH) | if not enough allocated length |
| basen::Exception(OUT_OF_ALPH) | if out of digits map |
| basen::Exception(PADDING) | if incorrect padding |
|
extern |
|
extern |