A minimal, professional, byte-level binary protocol implementation in C++.
- Fixed-layout wire format (24 bytes)
- Explicit endianness, alignment, and validation
- XOR checksum for payload integrity
make test— run unit testsmake visual— see byte-level visualization
[2] msg_type | [2] msg_len | [2] checksum | [8] order_id | [4] price | [4] quantity | [1] side | [1] padding
protocol.h— protocol layout & constantscodec.h/cpp— encode/decode logicendian.h— endian helpersvisualizer.*— byte-level visualizationtests.cpp— tests & demo