#2522 rewrote the outgoing huffman table and transposed symbol 0x19's code
from 0x1CE to 0x12E. The resulting code (100101110) is prefixed by symbol
0x0D's code (10010111), so the table was no longer prefix-free: the client's
decoder matched 0x0D after 8 bits, emitted the wrong byte, and desynced the
framing of everything that followed.
Any outgoing packet containing byte 0x19 anywhere in its body was affected.
StatLockInfo (0xBF/0x19) is sent during login, so clients jammed shortly after
entering the world - frozen world state, no disconnect.
Validated all 257 entries against every revision of the table in history: all
34 revisions back to the original import agree, and 0x1CE is the only outlier.
Adds regression tests: known-answer vectors generated from the canonical table
(pinning every entry), and a structural check that the table is a complete
prefix-free code, which is what makes this class of typo detectable at all.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
## Breaking Changes
Incoming packet registration signature has changed to:
```cs
delegate* void OnReceiveCallback(NetState state, SpanReader reader, int packetLength);
IncomingPackets.Register(int packetID, int length, bool ingame, OnReceiveCallback onReceive);
```
For example, an incoming packet handler signature would now look like this:
```cs
public static void SomeIncomingPacket(NetState state, SpanReader reader, int packetLength)
{
// Parse the data
}
```
## Summary
Updates the network Pipe class to use a mirrored memory technique. This technique involves mapping the same physical memory to two contiguous virtual memory spaces so the byte buffer appears duplicated. This allows writing to a double-sized array to wrap around without the need for the `CircularBuffer` classes.
In practice this allows us to use `Span<byte>` as if the buffer was a regular array.
### Bug Fixes
- [X] Fixes bad fixed length string parsing
**Only one functional change**
* Fixes a bug in LogFactory where `Warning` is being logged as `Information`
Non-functional changes:
* Updates/Fixes copyright headers
* Removes namespace scopes for core files.
View with [whitespace off](https://github.com/modernuo/ModernUO/pull/1187/files?w=1).