util: make EncodeBase32 consume Spans

This commit is contained in:
Sebastian Falbesoner
2020-08-07 19:55:51 +02:00
parent 8d6224fefe
commit 2bc207190e
3 changed files with 9 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ std::string EncodeBase64(const unsigned char* pch, size_t len);
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);
std::string EncodeBase32(const unsigned char* pch, size_t len);
std::string EncodeBase32(Span<const unsigned char> input);
std::string EncodeBase32(const std::string& str);
void SplitHostPort(std::string in, int& portOut, std::string& hostOut);