9 for (i = 0; i < 5; i++)
40 MainMessage msg = MainMessage_init_zero;
44 msglen = stream.bytes_written;
48 MainMessage msg = MainMessage_init_zero;
52 msg.submsg.foo.arg = ∑
54 TEST(sum == 1000 + 1001 + 1002 + 1003 + 1004);
static bool write_array(pb_ostream_t *stream, const pb_field_t *field, void *const *arg)
static bool read_array(pb_istream_t *stream, const pb_field_t *field, void **arg)
pb_field_iter_t pb_field_t
bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct)
bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest)
pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen)
bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_iter_t *field)
bool pb_encode_varint(pb_ostream_t *stream, uint64_t value)
pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize)
bool pb_encode(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct)