pub const HEADER_SIZE: usize = 44;Expand description
API 协议帧头大小 (44 bytes)
对应 C++ APIProtoHeader 结构体:
- szHeaderFlag[2]: “FT” magic bytes
- nProtoID: u32 LE, 协议 ID
- nProtoFmtType: u8, 0=Protobuf, 1=JSON
- nProtoVer: u8, 协议版本
- nSerialNo: u32 LE, 序列号
- nBodyLen: u32 LE, body 长度
- arrBodySHA1[20]: body 的 SHA1 哈希
- arrReserved[8]: 保留字段