mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/PacketIO: Updated packet structures to 9.2.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user