feat(Core/DB/Authserver): remove sha_pass_hash (#4827)

This commit is contained in:
UltraNix
2021-03-21 15:17:57 +01:00
committed by GitHub
parent e9ed6380a6
commit 485f7e7639
54 changed files with 1095 additions and 744 deletions

View File

@@ -17,6 +17,7 @@
#include <string>
#include <vector>
#include <cstring>
#include <array>
// Root of ByteBuffer exception hierarchy
class ByteBufferException : public std::exception
@@ -330,6 +331,12 @@ public:
_rpos += len;
}
template<size_t Size>
void read(std::array<uint8, Size>& arr)
{
read(arr.data(), Size);
}
void readPackGUID(uint64& guid)
{
if (rpos() + 1 > size())
@@ -452,6 +459,12 @@ public:
append(buffer.contents(), buffer.wpos());
}
template<size_t Size>
void append(std::array<uint8, Size> const& arr)
{
append(arr.data(), Size);
}
// can be used in SMSG_MONSTER_MOVE opcode
void appendPackXYZ(float x, float y, float z)
{