summaryrefslogtreecommitdiff
path: root/upbc/generator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'upbc/generator.cc')
-rw-r--r--upbc/generator.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/upbc/generator.cc b/upbc/generator.cc
index 42e249e..6c0179a 100644
--- a/upbc/generator.cc
+++ b/upbc/generator.cc
@@ -325,9 +325,10 @@ void GenerateMessageInHeader(const protobuf::Descriptor* message, Output& output
"UPB_INLINE $0 *$0_new(upb_arena *arena) {\n"
" return ($0 *)upb_msg_new(&$1, arena);\n"
"}\n"
- "UPB_INLINE $0 *$0_parsenew(upb_strview buf, upb_arena *arena) {\n"
+ "UPB_INLINE $0 *$0_parse(const char *buf, size_t size,\n"
+ " upb_arena *arena) {\n"
" $0 *ret = $0_new(arena);\n"
- " return (ret && upb_decode(buf, ret, &$1)) ? ret : NULL;\n"
+ " return (ret && upb_decode(buf, size, ret, &$1)) ? ret : NULL;\n"
"}\n"
"UPB_INLINE char *$0_serialize(const $0 *msg, upb_arena *arena, size_t "
"*len) {\n"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback