Home | History | Annotate | Download | only in callbacks

Lines Matching defs:stream

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