mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-13 05:31:09 +08:00
add more api
This commit is contained in:
@@ -11,7 +11,13 @@ struct SIMPLE_PB {
|
||||
typedef struct SIMPLE_PB SIMPLE_PB;
|
||||
|
||||
SIMPLE_PB* get_pb(FILE* fp);
|
||||
|
||||
uint32_t get_pb_len(FILE* fp);
|
||||
|
||||
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...
|
||||
uint32_t* align_struct(uint32_t struct_size, uint32_t items_cnt, ...);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user