1
0
mirror of https://github.com/fumiama/simple-protobuf.git synced 2026-06-12 12:50:30 +08:00

增加实际读取长度

This commit is contained in:
fumiama
2021-05-18 23:09:23 +08:00
parent 7de841dba1
commit a8d503137e
4 changed files with 6 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
#include <stdint.h>
struct SIMPLE_PB {
uint32_t len;
uint32_t struct_len, real_len;
char target[];
};
typedef struct SIMPLE_PB SIMPLE_PB;