diff options
author | Josh Haberman <jhaberman@gmail.com> | 2018-09-06 23:16:58 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2018-09-06 23:16:58 -0700 |
commit | a105c015b106b6be31fc45fdd4c568684815801c (patch) | |
tree | bbb66457418d6fd20b585bf23b5f2d61ac46a1bc /upb/msg.h | |
parent | ea19fa4ed6af171a787990270871e9dc0fd809f0 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |