AuroraRuntime/Include/Aurora/Parse/Base32.hpp
2021-06-27 22:25:29 +01:00

23 lines
639 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: Base32.hpp
Date: 2021-6-10
Author: Reece
***/
#pragma once
namespace Aurora::Parse
{
AUKN_SYM bool Base32Decode(const AuString &in, AuList<AuUInt8> &decoded);
AUKN_SYM bool Base32Encode(const void *buffer, AuMach length, AuString &encoded);
static bool Base32Encode(const AuString &in, AuString &encoded)
{
return Base32Encode(in.data(), in.size(), encoded);
}
static bool Base32Encode(const AuList<AuUInt8> &in, AuString &encoded)
{
return Base32Encode(in.data(), in.size(), encoded);
}
}