2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
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
|
|
|
|
{
|
2022-01-20 16:04:53 +00:00
|
|
|
AUKN_SYM bool Base32Decode(const AuString &in, Memory::ByteBuffer &decoded);
|
2021-06-27 21:25:29 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
2022-01-20 16:04:53 +00:00
|
|
|
static bool Base32Encode(const Memory::ByteBuffer &in, AuString &encoded)
|
2021-06-27 21:25:29 +00:00
|
|
|
{
|
|
|
|
return Base32Encode(in.data(), in.size(), encoded);
|
|
|
|
}
|
|
|
|
}
|