16 void digitsMap(
const char *digits, uint8_t digits_size, uint8_t *map);
23 bool isValid(
const char *str,
size_t str_size,
const uint8_t *map)
noexcept;
29 bool isValid(std::string_view str,
const uint8_t *map)
noexcept;
37 size_t sizeEncoded(std::span<const uint8_t> data, uint8_t base);
46 size_t sizeDecoded(std::string_view str, uint8_t base,
const char *digits);
67 size_t encode(
const uint8_t *data,
size_t data_size,
char *str,
size_t str_size, uint8_t base,
const char *digits);
78 std::string
encode(std::span<const uint8_t> data, uint8_t base,
const char *digits);
101 size_t decode(
const char *str,
size_t str_size, uint8_t *data,
size_t data_size, uint8_t base,
const char *digits,
const uint8_t *map);
113 std::vector<uint8_t>
decode(std::string_view str, uint8_t base,
const char *digits,
const uint8_t *map);
bool isValid(const char *str, size_t str_size, const uint8_t *map) noexcept
void digitsMap(const char *digits, uint8_t digits_size, uint8_t *map)
size_t encode(const uint8_t *data, size_t data_size, char *str, size_t str_size, uint8_t base, const char *digits)
size_t sizeEncoded(std::span< const uint8_t > data, uint8_t base)
size_t sizeDecoded(std::string_view str, uint8_t base, const char *digits)
size_t decode(const char *str, size_t str_size, uint8_t *data, size_t data_size, uint8_t base, const char *digits, const uint8_t *map)