span: Add std::byte helpers

Also, add Span<std::byte> interface to strencondings.
This commit is contained in:
MarcoFalke
2021-11-04 09:03:04 +01:00
parent fa18038f51
commit faa3ec2304
5 changed files with 56 additions and 11 deletions

View File

@@ -138,11 +138,6 @@ std::string EncodeBase64(Span<const unsigned char> input)
return str;
}
std::string EncodeBase64(const std::string& str)
{
return EncodeBase64(MakeUCharSpan(str));
}
std::vector<unsigned char> DecodeBase64(const char* p, bool* pf_invalid)
{
static const int decode64_table[256] =