summaryrefslogtreecommitdiff
path: root/core/upb_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/upb_stream.h')
-rw-r--r--core/upb_stream.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/upb_stream.h b/core/upb_stream.h
index 9147e45..b7400c5 100644
--- a/core/upb_stream.h
+++ b/core/upb_stream.h
@@ -111,7 +111,10 @@ bool upb_sink_putdef(upb_sink *sink, struct _upb_fielddef *def);
bool upb_sink_putval(upb_sink *sink, upb_value val);
bool upb_sink_putstr(upb_sink *sink, upb_string *str);
-// Ends a submessage.
+// Starts/ends a submessage. upb_sink_startmsg may seem redundant, but a
+// client could have a submessage already serialized, and therefore put it
+// as a string instead of its individual elements.
+bool upb_sink_startmsg(upb_sink *sink);
bool upb_sink_endmsg(upb_sink *sink);
// Returns the current error status for the stream.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback