10 extern const char digits[17];
11 extern const uint8_t
map[256];
13 bool isValid(
const char *str,
size_t str_size)
noexcept;
14 bool isValid(std::string_view str)
noexcept;
26 void encode(
const uint8_t *data,
size_t data_size,
char *str,
size_t str_size);
27 std::string
encode(std::span<const uint8_t> data);
35 void decode(
const char *str,
size_t str_size, uint8_t *data,
size_t data_size);
36 std::vector<uint8_t>
decode(std::string_view str);
void decode(const char *str, size_t str_size, uint8_t *data, size_t data_size)
size_t sizeDecoded(std::string_view str) noexcept
void encode(const uint8_t *data, size_t data_size, char *str, size_t str_size)
size_t sizeEncoded(std::span< const uint8_t > data)
bool isValid(const char *str, size_t str_size) noexcept