feat(base64): encode
This commit is contained in:
@ -7,12 +7,12 @@
|
||||
|
||||
namespace base64
|
||||
{
|
||||
bool isValid(const char *str) noexcept;
|
||||
bool isValid(const char *str, size_t str_size) noexcept;
|
||||
bool isValid(std::string_view str) noexcept;
|
||||
|
||||
void encode(const uint8_t *data, uint64_t data_size, char *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) noexcept;
|
||||
|
||||
void decode(const char *str, uint8_t *data, uint64_t data_size);
|
||||
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);
|
||||
std::vector<uint8_t> decode(std::string_view str) noexcept;
|
||||
}
|
||||
Reference in New Issue
Block a user