Searched refs:substream (Results 1 – 9 of 9) sorted by relevance
/nanopb-3.4.0/examples/using_union_messages/ |
D | decode.c | 46 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-3.4.0/tests/raw_decode/ |
D | raw_decode.c | 140 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-3.4.0/ |
D | pb_decode.c | 361 bool checkreturn pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream) in pb_make_string_substream() argument 367 *substream = *stream; in pb_make_string_substream() 368 if (substream->bytes_left < size) in pb_make_string_substream() 371 substream->bytes_left = (size_t)size; in pb_make_string_substream() 376 bool checkreturn pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream) in pb_close_string_substream() argument 378 if (substream->bytes_left) { in pb_close_string_substream() 379 if (!pb_read(substream, NULL, substream->bytes_left)) in pb_close_string_substream() 383 stream->state = substream->state; in pb_close_string_substream() 386 stream->errmsg = substream->errmsg; in pb_close_string_substream() 484 pb_istream_t substream; in decode_static_field() local [all …]
|
D | pb_encode.c | 726 pb_ostream_t substream = PB_OSTREAM_SIZING; in pb_encode_submessage() local 730 if (!pb_encode(&substream, fields, src_struct)) in pb_encode_submessage() 733 stream->errmsg = substream.errmsg; in pb_encode_submessage() 738 size = substream.bytes_written; in pb_encode_submessage() 751 substream.callback = stream->callback; in pb_encode_submessage() 752 substream.state = stream->state; in pb_encode_submessage() 753 substream.max_size = size; in pb_encode_submessage() 754 substream.bytes_written = 0; in pb_encode_submessage() 756 substream.errmsg = NULL; in pb_encode_submessage() 759 status = pb_encode(&substream, fields, src_struct); in pb_encode_submessage() [all …]
|
D | pb_decode.h | 186 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream); 187 bool pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);
|
D | CHANGELOG.txt | 30 Fix passing of error message from substream callback (#703) 314 Make string substream API more robust (#230)
|
/nanopb-3.4.0/spm_headers/nanopb/ |
D | pb_decode.h | 186 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream); 187 bool pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);
|
/nanopb-3.4.0/docs/ |
D | reference.md | 869 … the length has already been decoded and the callback function is given a length-limited substream. 955 a substream for reading the data. 957 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream); 962 | substream | Storage for a new substream that has limited length. Filled in by the func… 966 This is interpreted as a number of bytes, and the substream is set up so that its `bytes_left` is i… 971 Close the substream created with 974 void pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream); 979 | substream | Substream to close 981 This function copies back the state from the substream to the parent stream, 982 and throws away any unread data from the substream. [all …]
|
D | migration.md | 369 **Rationale:** If the substream functions were called directly and the
|