Core/PacketIO: Updated packet structures to 9.2.0

This commit is contained in:
Shauren
2022-02-24 23:16:55 +01:00
parent f96c8cc39b
commit 9f30afe352
54 changed files with 1406 additions and 1067 deletions

View File

@@ -503,6 +503,12 @@ class TC_SHARED_API ByteBuffer
append(str.c_str(), len);
}
void WriteString(std::string_view str)
{
if (size_t len = str.length())
append(str.data(), len);
}
void WriteString(char const* str, size_t len)
{
if (len)