Home
last modified time | relevance | path

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

/external/nanopb-c/
Dpb_decode.c317 bool checkreturn pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream) in pb_make_string_substream() argument
323 *substream = *stream; in pb_make_string_substream()
324 if (substream->bytes_left < size) in pb_make_string_substream()
327 substream->bytes_left = size; in pb_make_string_substream()
332 void pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream) in pb_close_string_substream() argument
334 stream->state = substream->state; in pb_close_string_substream()
337 stream->errmsg = substream->errmsg; in pb_close_string_substream()
433 pb_istream_t substream; in decode_static_field() local
434 if (!pb_make_string_substream(stream, &substream)) in decode_static_field()
437 while (substream.bytes_left > 0 && *size < iter->pos->array_size) in decode_static_field()
[all …]
Dpb_encode.c508 pb_ostream_t substream = PB_OSTREAM_SIZING; in pb_encode_submessage() local
512 if (!pb_encode(&substream, fields, src_struct)) in pb_encode_submessage()
515 stream->errmsg = substream.errmsg; in pb_encode_submessage()
520 size = substream.bytes_written; in pb_encode_submessage()
533 substream.callback = stream->callback; in pb_encode_submessage()
534 substream.state = stream->state; in pb_encode_submessage()
535 substream.max_size = size; in pb_encode_submessage()
536 substream.bytes_written = 0; in pb_encode_submessage()
538 substream.errmsg = NULL; in pb_encode_submessage()
541 status = pb_encode(&substream, fields, src_struct); in pb_encode_submessage()
[all …]
Dpb_decode.h142 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream);
143 void pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);
/external/nanopb-c/examples/using_union_messages/
Ddecode.c47 pb_istream_t substream; in decode_unionmessage_contents() local
49 if (!pb_make_string_substream(stream, &substream)) in decode_unionmessage_contents()
52 status = pb_decode(&substream, fields, dest_struct); in decode_unionmessage_contents()
53 pb_close_string_substream(stream, &substream); in decode_unionmessage_contents()
/external/chromium_org/courgette/
Dstreams.h88 bool ShareSubstream(size_t offset, size_t length, SourceStream* substream);
93 bool ShareSubstream(size_t length, SourceStream* substream) { in ShareSubstream() argument
94 return ShareSubstream(0, length, substream); in ShareSubstream()
100 bool ReadSubstream(size_t length, SourceStream* substream);
Dstreams.cc161 SourceStream* substream) { in ShareSubstream() argument
166 substream->Init(current_ + offset, length); in ShareSubstream()
170 bool SourceStream::ReadSubstream(size_t length, SourceStream* substream) { in ReadSubstream() argument
171 if (!ShareSubstream(0, length, substream)) in ReadSubstream()
/external/nanopb-c/docs/
Dreference.rst735 Decode the length for a field with wire type *PB_WT_STRING* and create a substream for reading the …
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 …eger from the stream. This is interpreted as a number of bytes, and the substream is set up so tha…
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.
/external/kernel-headers/original/uapi/sound/
Demu10k1.h333 unsigned int substream; /* substream number */ member
/external/chromium_org/third_party/libvpx/source/libvpx/
DCHANGELOG190 for each substream.
/external/libvpx/libvpx/
DCHANGELOG190 for each substream.