util: make EncodeBase64 consume Spans

This commit is contained in:
Sebastian Falbesoner
2020-08-07 20:25:42 +02:00
parent 2bc207190e
commit e2aa1a585a
4 changed files with 11 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ bool IsHex(const std::string& str);
bool IsHexNumber(const std::string& str);
std::vector<unsigned char> DecodeBase64(const char* p, bool* pf_invalid = nullptr);
std::string DecodeBase64(const std::string& str, bool* pf_invalid = nullptr);
std::string EncodeBase64(const unsigned char* pch, size_t len);
std::string EncodeBase64(Span<const unsigned char> input);
std::string EncodeBase64(const std::string& str);
std::vector<unsigned char> DecodeBase32(const char* p, bool* pf_invalid = nullptr);
std::string DecodeBase32(const std::string& str, bool* pf_invalid = nullptr);