Lines Matching refs:stream

2  * The main function is pb_decode. You also need an input stream, and the
25 * is different than from the main stream. Don't use bytes_left to compute
37 bool (*callback)(pb_istream_t *stream, pb_byte_t *buf, size_t count);
58 /* Decode a single protocol buffers message from input stream into a C structure.
67 * pb_istream_t stream;
71 * stream = pb_istream_from_buffer(buffer, count);
72 * pb_decode(&stream, MyMessage_fields, &msg);
74 bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct);
102 bool pb_decode_ex(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct, unsigned int flags);
120 /* Create an input stream for reading from a memory buffer.
125 * Alternatively, you can use a custom stream that reads directly from e.g.
133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
140 /* Decode the tag for the next field in the stream. Gives the wire type and
142 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
145 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
150 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
157 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
160 bool pb_decode_bool(pb_istream_t *stream, bool *dest);
165 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest);
167 bool pb_decode_svarint(pb_istream_t *stream, int32_t *dest);
172 bool pb_decode_fixed32(pb_istream_t *stream, void *dest);
177 bool pb_decode_fixed64(pb_istream_t *stream, void *dest);
182 bool pb_decode_double_as_float(pb_istream_t *stream, float *dest);
186 bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream);
187 bool pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream);