Core/PacketIO: Add missing ByteBuffer operator overload

This commit is contained in:
Shauren
2020-09-28 10:37:32 +02:00
parent 868c82aa6c
commit a415540775

View File

@@ -141,6 +141,12 @@ class TC_SHARED_API ByteBuffer
put(pos, (uint8 *)&value, sizeof(value));
}
ByteBuffer& operator<<(bool value)
{
append<uint8>(value ? 1 : 0);
return *this;
}
ByteBuffer &operator<<(uint8 value)
{
append<uint8>(value);