Lines Matching refs:stream
18 const pb_msgdesc_t* decode_unionmessage_type(pb_istream_t *stream) in decode_unionmessage_type() argument
24 while (pb_decode_tag(stream, &wire_type, &tag, &eof)) in decode_unionmessage_type()
38 pb_skip_field(stream, wire_type); in decode_unionmessage_type()
44 bool decode_unionmessage_contents(pb_istream_t *stream, const pb_msgdesc_t *messagetype, void *dest… in decode_unionmessage_contents() argument
48 if (!pb_make_string_substream(stream, &substream)) in decode_unionmessage_contents()
52 pb_close_string_substream(stream, &substream); in decode_unionmessage_contents()
61 pb_istream_t stream = pb_istream_from_buffer(buffer, count); in main() local
63 const pb_msgdesc_t *type = decode_unionmessage_type(&stream); in main()
69 status = decode_unionmessage_contents(&stream, MsgType1_fields, &msg); in main()
75 status = decode_unionmessage_contents(&stream, MsgType2_fields, &msg); in main()
81 status = decode_unionmessage_contents(&stream, MsgType3_fields, &msg); in main()
87 printf("Decode failed: %s\n", PB_GET_ERROR(&stream)); in main()