mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Minor refactors in BaseEncoding and SslSocket to prepare for future bnetserver changes
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "Define.h"
|
||||
#include "Optional.h"
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
namespace Trinity
|
||||
@@ -30,7 +31,7 @@ namespace Encoding
|
||||
struct TC_COMMON_API Base32
|
||||
{
|
||||
static std::string Encode(std::vector<uint8> const& data);
|
||||
static Optional<std::vector<uint8>> Decode(std::string const& data);
|
||||
static Optional<std::vector<uint8>> Decode(std::string_view data);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user