From aa17725d9fb1d855c070707d960d419100459f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 6 May 2022 11:16:55 +0800 Subject: [PATCH] add more api --- simple_protobuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_protobuf.h b/simple_protobuf.h index b3151b3..8fa23c7 100644 --- a/simple_protobuf.h +++ b/simple_protobuf.h @@ -18,7 +18,7 @@ SIMPLE_PB* read_pb_into(FILE* fp, SIMPLE_PB* spb); int set_pb(FILE* fp, uint32_t* items_len, uint32_t struct_len, void* target); -//uint32_t struct_size, uint32_t items_cnt, void* item_addr1, void* item_addr2... +// items_len = align_struct(uint32_t struct_size, uint32_t items_cnt, void* item_addr1, void* item_addr2...) uint32_t* align_struct(uint32_t struct_size, uint32_t items_cnt, ...); #endif \ No newline at end of file