• Home
  • Raw
  • Download

Lines Matching refs:substream

367 bool checkreturn pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream)  in pb_make_string_substream()  argument
373 *substream = *stream; in pb_make_string_substream()
374 if (substream->bytes_left < size) in pb_make_string_substream()
377 substream->bytes_left = size; in pb_make_string_substream()
382 bool checkreturn pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream) in pb_close_string_substream() argument
384 if (substream->bytes_left) { in pb_close_string_substream()
385 if (!pb_read(substream, NULL, substream->bytes_left)) in pb_close_string_substream()
389 stream->state = substream->state; in pb_close_string_substream()
392 stream->errmsg = substream->errmsg; in pb_close_string_substream()
427 pb_istream_t substream; in decode_static_field() local
428 if (!pb_make_string_substream(stream, &substream)) in decode_static_field()
431 while (substream.bytes_left > 0 && *size < iter->pos->array_size) in decode_static_field()
434 if (!func(&substream, iter->pos, pItem)) in decode_static_field()
442 if (substream.bytes_left != 0) in decode_static_field()
444 if (!pb_close_string_substream(stream, &substream)) in decode_static_field()
588 pb_istream_t substream; in decode_pointer_field()
590 if (!pb_make_string_substream(stream, &substream)) in decode_pointer_field()
593 while (substream.bytes_left) in decode_pointer_field()
600 allocated_size += (substream.bytes_left - 1) / iter->pos->data_size + 1; in decode_pointer_field()
602 … if (!allocate_field(&substream, iter->pData, iter->pos->data_size, allocated_size)) in decode_pointer_field()
612 if (!func(&substream, iter->pos, pItem)) in decode_pointer_field()
629 if (!pb_close_string_substream(stream, &substream)) in decode_pointer_field()
673 pb_istream_t substream; in decode_callback_field() local
675 if (!pb_make_string_substream(stream, &substream)) in decode_callback_field()
680 if (!pCallback->funcs.decode(&substream, iter->pos, arg)) in decode_callback_field()
682 } while (substream.bytes_left); in decode_callback_field()
684 if (!pb_close_string_substream(stream, &substream)) in decode_callback_field()
695 pb_istream_t substream; in decode_callback_field() local
701 substream = pb_istream_from_buffer(buffer, size); in decode_callback_field()
703 return pCallback->funcs.decode(&substream, iter->pos, arg); in decode_callback_field()
1067 pb_istream_t substream; in pb_decode_delimited_noinit() local
1070 if (!pb_make_string_substream(stream, &substream)) in pb_decode_delimited_noinit()
1073 status = pb_decode_noinit(&substream, fields, dest_struct); in pb_decode_delimited_noinit()
1075 if (!pb_close_string_substream(stream, &substream)) in pb_decode_delimited_noinit()
1082 pb_istream_t substream; in pb_decode_delimited() local
1085 if (!pb_make_string_substream(stream, &substream)) in pb_decode_delimited()
1088 status = pb_decode(&substream, fields, dest_struct); in pb_decode_delimited()
1090 if (!pb_close_string_substream(stream, &substream)) in pb_decode_delimited()
1466 pb_istream_t substream; in pb_dec_submessage() local
1469 if (!pb_make_string_substream(stream, &substream)) in pb_dec_submessage()
1478 status = pb_decode(&substream, submsg_fields, dest); in pb_dec_submessage()
1480 status = pb_decode_noinit(&substream, submsg_fields, dest); in pb_dec_submessage()
1482 if (!pb_close_string_substream(stream, &substream)) in pb_dec_submessage()