summaryrefslogtreecommitdiff
path: root/upb/msg.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2018-09-06 23:16:58 -0700
committerJosh Haberman <jhaberman@gmail.com>2018-09-06 23:16:58 -0700
commita105c015b106b6be31fc45fdd4c568684815801c (patch)
treebbb66457418d6fd20b585bf23b5f2d61ac46a1bc /upb/msg.h
parentea19fa4ed6af171a787990270871e9dc0fd809f0 (diff)
Added support for unknown fields to upb_msg.
After this CL, upb passes all existing proto3 conformance tests. However the conformance suite is missing a lot of cases and should be fleshed out.
Diffstat (limited to 'upb/msg.h')
-rw-r--r--upb/msg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/upb/msg.h b/upb/msg.h
index 8236799..3de5bab 100644
--- a/upb/msg.h
+++ b/upb/msg.h
@@ -154,6 +154,9 @@ upb_msg *upb_msg_new(const upb_msglayout *l, upb_arena *a);
/* Returns the arena for the given message. */
upb_arena *upb_msg_arena(const upb_msg *msg);
+void upb_msg_addunknown(upb_msg *msg, const char *data, size_t len);
+const char *upb_msg_getunknown(upb_msg *msg, size_t *len);
+
/* Read-only message API. Can be safely called by anyone. */
/* Returns the value associated with this field:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback