Home
last modified time | relevance | path

Searched refs:substream (Results 1 – 9 of 9) sorted by relevance

/nanopb-2.7.6/examples/using_union_messages/
Ddecode.c46 pb_istream_t substream; in decode_unionmessage_contents() local
48 if (!pb_make_string_substream(stream, &substream)) in decode_unionmessage_contents()
51 status = pb_decode(&substream, messagetype, dest_struct); in decode_unionmessage_contents()
52 pb_close_string_substream(stream, &substream); in decode_unionmessage_contents()
/nanopb-2.7.6/tests/raw_decode/
Draw_decode.c140 pb_istream_t substream; in raw_decode() local
142 if (!pb_make_string_substream(stream, &substream)) in raw_decode()
151 if (substream.bytes_left == 0) in raw_decode()
161 (int)substream.bytes_left); in raw_decode()
163 if (!raw_decode(&substream, prefix)) in raw_decode()
169 pb_close_string_substream(stream, &substream); in raw_decode()
/nanopb-2.7.6/
Dpb_decode.c359 bool checkreturn pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream) in pb_make_string_substream() argument
365 *substream = *stream; in pb_make_string_substream()
366 if (substream->bytes_left < size) in pb_make_string_substream()
369 substream->bytes_left = (size_t)size; in pb_make_string_substream()
374 bool checkreturn pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream) in pb_close_string_substream() argument
376 if (substream->bytes_left) { in pb_close_string_substream()
377 if (!pb_read(substream, NULL, substream->bytes_left)) in pb_close_string_substream()
381 stream->state = substream->state; in pb_close_string_substream()
384 stream->errmsg = substream->errmsg; in pb_close_string_substream()
482 pb_istream_t substream; in decode_static_field() local
[all …]
Dpb_encode.c713 pb_ostream_t substream = PB_OSTREAM_SIZING; in pb_encode_submessage() local
717 if (!pb_encode(&substream, fields, src_struct)) in pb_encode_submessage()
720 stream->errmsg = substream.errmsg; in pb_encode_submessage()
725 size = substream.bytes_written; in pb_encode_submessage()
738 substream.callback = stream->callback; in pb_encode_submessage()
739 substream.state = stream->state; in pb_encode_submessage()
740 substream.max_size = size; in pb_encode_submessage()
741 substream.bytes_written = 0; in pb_encode_submessage()
743 substream.errmsg = NULL; in pb_encode_submessage()
746 status = pb_encode(&substream, fields, src_struct); in pb_encode_submessage()
[all …]
Dpb_decode.h192 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream);
193 bool pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);
DCHANGELOG.txt239 Make string substream API more robust (#230)
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_decode.h192 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream);
193 bool pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);
/nanopb-2.7.6/docs/
Dreference.md856 … the length has already been decoded and the callback function is given a length-limited substream.
942 a substream for reading the data.
944 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream);
949 | substream | Storage for a new substream that has limited length. Filled in by the func…
953 This is interpreted as a number of bytes, and the substream is set up so that its `bytes_left` is i…
958 Close the substream created with
961 void pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);
966 | substream | Substream to close
968 This function copies back the state from the substream to the parent stream,
969 and throws away any unread data from the substream.
[all …]
Dmigration.md312 **Rationale:** If the substream functions were called directly and the