feat(hex, base64): sizeEncoded, sizeDecoded
This commit is contained in:
@ -10,6 +10,9 @@ namespace base64
|
||||
bool isValid(const char *str, uint64_t str_size) noexcept;
|
||||
bool isValid(std::string_view str) noexcept;
|
||||
|
||||
uint64_t sizeEncoded(std::span<const uint8_t> data);
|
||||
uint64_t sizeDecoded(std::string_view str_size) noexcept;
|
||||
|
||||
void encode(const uint8_t *data, uint64_t data_size, char *str, uint64_t str_size);
|
||||
std::string encode(std::span<const uint8_t> data) noexcept;
|
||||
|
||||
|
||||
@ -10,6 +10,9 @@ namespace hex
|
||||
bool isValid(const char *str, uint64_t str_size) noexcept;
|
||||
bool isValid(std::string_view str) noexcept;
|
||||
|
||||
uint64_t sizeEncoded(std::span<const uint8_t> data);
|
||||
uint64_t sizeDecoded(std::string_view str_size) noexcept;
|
||||
|
||||
void encode(const uint8_t *data, uint64_t data_size, char *str, uint64_t str_size);
|
||||
std::string encode(std::span<const uint8_t> data) noexcept;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user