mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
span: Add std::byte helpers
Also, add Span<std::byte> interface to strencondings.
This commit is contained in:
parent
fa18038f51
commit
faa3ec2304
5 changed files with 56 additions and 11 deletions
|
|
@ -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] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue