summaryrefslogtreecommitdiff
path: root/upb/structs.int.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2017-07-19 01:08:54 +0200
committerGitHub <noreply@github.com>2017-07-19 01:08:54 +0200
commitae30b4a816a57a8101ce187245edc3050d515c06 (patch)
treef90b48f78f28071a6514a8f766bb6570ae35f5f1 /upb/structs.int.h
parentd5167fff744167eca45df65b5b935525778e2886 (diff)
parent72c333eb037da6fe63358efe9c6dc29547b0ab49 (diff)
Merge pull request #90 from haberman/gencode3
Added new encoder/decoder that operates on upb_msglayout.
Diffstat (limited to 'upb/structs.int.h')
-rw-r--r--upb/structs.int.h18
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_ */
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback