23 lines
721 B
C++
23 lines
721 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, AuList<AuUInt8> &decoded, bool url = false);
|
|
|
|
AUKN_SYM bool Base64Encode(const void *buffer, AuMach length, AuString &encoded, bool url = false);
|
|
static bool Base64Encode(const AuString &in, AuString &encoded, bool url = false)
|
|
{
|
|
return Base64Encode(in.data(), in.size(), encoded, url);
|
|
}
|
|
static bool Base64Encode(const AuList<AuUInt8> &in, AuString &encoded, bool url = false)
|
|
{
|
|
return Base64Encode(in.data(), in.size(), encoded, url);
|
|
}
|
|
} |