AuroraRuntime/Include/Aurora/Parse/Base64.hpp
Reece Wilson 85c29bb203 [*] base32 encode should take a view over pointer
[*] base64->16 typo
[-] redundant explicit static parsers
2022-09-29 08:58:20 +01:00

21 lines
605 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: Base64.hpp
Date: 2021-6-10
Author: Reece
***/
#pragma once
namespace Aurora::Parse
{
AUKN_SYM bool Base64Decode(const AuString &in, Memory::ByteBuffer &decoded, bool url = false);
AUKN_SYM bool Base64Encode(const Memory::MemoryViewRead &input, AuString &encoded, bool url = false);
template<typename T, typename Z>
static bool Base64Encode(T begin, Z end, AuString &encoded, bool url = false)
{
return Base64Encode(Memory::MemoryViewRead {begin, end}, encoded, url);
}
}