diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-07-17 12:56:04 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-07-17 12:56:04 -0700 |
commit | 87b2c69c15716b96a294f5918878fb8b7b9a0b40 (patch) | |
tree | 22dcd3ac6d958fe172fcb521f931243f576ddf44 /core/upb_stream.h | |
parent | 5b5e26144ddcfcbbee8b6df843a7d169d4cf1eea (diff) |
Fleshed out upb_stdio and upb_textprinter.
test_decoder now compiles and links! But it doesn't
work yet.
Diffstat (limited to 'core/upb_stream.h')
-rw-r--r-- | core/upb_stream.h | 5 |
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. |