Lines Matching refs:stream
10 bool read_prefix(pb_istream_t *stream, int *msgid) in read_prefix() argument
14 if (!pb_read(stream, &prefix, 1)) in read_prefix()
23 bool handle_MyMessage1(pb_istream_t *stream) in handle_MyMessage1() argument
27 if (!pb_decode(stream, MyMessage1_fields, &msg)) in handle_MyMessage1()
34 bool handle_MyMessage2(pb_istream_t *stream) in handle_MyMessage2() argument
38 if (!pb_decode(stream, MyMessage2_fields, &msg)) in handle_MyMessage2()
46 bool handle_MyMessage3(pb_istream_t *stream) in handle_MyMessage3() argument
50 if (!pb_decode(stream, MyMessage3_fields, &msg)) in handle_MyMessage3()
60 pb_istream_t stream; in main() local
75 stream = pb_istream_from_buffer(buffer, count); in main()
77 if (!read_prefix(&stream, &prefix)) in main()
79 printf("Failed to read prefix: %s\n", PB_GET_ERROR(&stream)); in main()
91 #define PB_MSG(id,len,name) case id: status = handle_ ## name(&stream); break; in main()
100 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()