diff options
author | Josh Haberman <jhaberman@gmail.com> | 2019-02-01 16:34:52 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2019-02-01 16:34:52 -0800 |
commit | 32e3f394b42cff2b94c5ef84cb31009ce33c864f (patch) | |
tree | 00d782daf791f909613a7ec8f267dbd06dd0bfe4 /upb/decode.h | |
parent | 2b62fbce6734eb672ae6ff6fcf258bfff4267ae8 (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.h | 3 |
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 |