返回题库

Quant Interview Practice Questions

专题
architecture & logic
难度
L2
来源
MyntBit

题目详情

In low-latency trading systems, financial messages are often transmitted using custom binary protocols rather than text-based formats to minimize bandwidth and parsing overhead. Implementing a binary codec requires packing and unpacking fields into fixed-width byte sequences while strictly adhering to network byte order (Big-Endian) conventions. Task Implement a BinaryCodec class to encode and decode a custom order message protocol. The protocol uses Big-Endian (Network Byte Order) for all mult