Core/PacketIO: Mark packet parsing exception throwing code paths as [[noreturn]]

This commit is contained in:
Shauren
2025-05-22 23:17:01 +02:00
parent fde4ba92f6
commit 5bebf05209
13 changed files with 48 additions and 21 deletions

View File

@@ -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>();