Lines Matching refs:stream
10 bool print_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_string() argument
15 if (stream->bytes_left > sizeof(buffer) - 1) in print_string()
18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
28 bool print_int32(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_int32() argument
31 if (!pb_decode_varint(stream, &value)) in print_int32()
38 bool print_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_fixed32() argument
41 if (!pb_decode_fixed32(stream, &value)) in print_fixed32()
48 bool print_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_fixed64() argument
51 if (!pb_decode_fixed64(stream, &value)) in print_fixed64()
62 pb_istream_t stream; in main() local
71 stream = pb_istream_from_buffer(buffer, length); in main()
93 if (!pb_decode(&stream, TestMessage_fields, &testmessage)) in main()