Home | History | Annotate | Download | only in docs

Lines Matching full:substream

735 Decode the length for a field with wire type *PB_WT_STRING* and create a substream for reading the data. ::
737 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream);
740 :substream: New substream that has limited length. Filled in by the function.
743 This function uses `pb_decode_varint`_ to read an integer from the stream. This is interpreted as a number of bytes, and the substream is set up so that its `bytes_left` is initially the same as the length, and its callback function and state the same as the parent stream.
747 Close the substream created with `pb_make_string_substream`_. ::
749 void pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);
752 :substream: Substream to close
754 This function copies back the state from the substream to the parent stream.
755 It must be called after done with the substream.