summaryrefslogtreecommitdiff
path: root/upb/decode.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2019-02-01 16:34:52 -0800
committerJosh Haberman <jhaberman@gmail.com>2019-02-01 16:34:52 -0800
commit32e3f394b42cff2b94c5ef84cb31009ce33c864f (patch)
tree00d782daf791f909613a7ec8f267dbd06dd0bfe4 /upb/decode.h
parent2b62fbce6734eb672ae6ff6fcf258bfff4267ae8 (diff)
A few small API tweaks.
- Foo_parsenew() -> Foo_parse(). - parse function takes plain (const char*, size_t) instead of upb_strview. The latter is mainly useful for strings inside message objects.
Diffstat (limited to 'upb/decode.h')
-rw-r--r--upb/decode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/upb/decode.h b/upb/decode.h
index dee4c0f..224e606 100644
--- a/upb/decode.h
+++ b/upb/decode.h
@@ -9,7 +9,8 @@
UPB_BEGIN_EXTERN_C
-bool upb_decode(upb_strview buf, upb_msg *msg, const upb_msglayout *l);
+bool upb_decode(const char *buf, size_t size, upb_msg *msg,
+ const upb_msglayout *l);
UPB_END_EXTERN_C
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback