摘要:
背景:主从机交互协议中,需要针对不同控制字封装回复消息接口。本文使用变长数组特性和零长数组特性对这类接口进行统一封装。 1 #pragma pack(1) 2 typedef struct { 3 uint8_t magic; 4 uint8_t len_H; 5 uint8_t len_L; // 阅读全文
posted @ 2024-07-30 14:22
TheShore
阅读(29)
评论(0)
推荐(0)
浙公网安备 33010602011771号