mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/PacketIO: Mark packet parsing exception throwing code paths as [[noreturn]]
This commit is contained in:
@@ -199,6 +199,11 @@ void ByteBuffer::hexlike() const
|
||||
sLog->OutMessageTo(networkLogger, "network", LOG_LEVEL_TRACE, "STORAGE_SIZE: {} {}", size(), o.view());
|
||||
}
|
||||
|
||||
void ByteBuffer::OnInvalidPosition(size_t pos, size_t valueSize) const
|
||||
{
|
||||
throw ByteBufferPositionException(pos, _storage.size(), valueSize);
|
||||
}
|
||||
|
||||
template TC_SHARED_API uint8 ByteBuffer::read<uint8>();
|
||||
template TC_SHARED_API uint16 ByteBuffer::read<uint16>();
|
||||
template TC_SHARED_API uint32 ByteBuffer::read<uint32>();
|
||||
|
||||
Reference in New Issue
Block a user