mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-20 23:11:56 -04:00
Core/Misc: Minor refactors in BaseEncoding and SslSocket to prepare for future bnetserver changes
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "Optional.h"
|
||||
#include <numeric>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
namespace Trinity
|
||||
@@ -100,7 +101,7 @@ struct GenericBaseEncoding
|
||||
return s;
|
||||
}
|
||||
|
||||
static Optional<std::vector<uint8>> Decode(std::string const& data)
|
||||
static Optional<std::vector<uint8>> Decode(std::string_view data)
|
||||
{
|
||||
auto it = data.begin(), end = data.end();
|
||||
if (it == end)
|
||||
|
||||
Reference in New Issue
Block a user