diff options
author | Josh Haberman <jhaberman@gmail.com> | 2017-07-08 00:00:05 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2017-07-08 00:00:05 -0700 |
commit | 1aafd4111b9b6d08d2d0937b0f396a4caa9ea04d (patch) | |
tree | 9bcb6c61ee333de00819973f3a3acd8aab9238e5 /upb/structs.int.h | |
parent | dd536fd567b2ba9bed67a0094c5cd905c774f951 (diff) |
A good start on upb_encode and upb_decode.
Diffstat (limited to 'upb/structs.int.h')
-rw-r--r-- | upb/structs.int.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/upb/structs.int.h b/upb/structs.int.h new file mode 100644 index 0000000..242155b --- /dev/null +++ b/upb/structs.int.h @@ -0,0 +1,18 @@ +/* +** structs.int.h: structures definitions that are internal to upb. +*/ + +#ifndef UPB_STRUCTS_H_ +#define UPB_STRUCTS_H_ + +struct upb_array { + upb_fieldtype_t type; + uint8_t element_size; + void *data; /* Each element is element_size. */ + size_t len; /* Measured in elements. */ + size_t size; /* Measured in elements. */ + upb_alloc *alloc; +}; + +#endif /* UPB_STRUCTS_H_ */ + |