Searched refs:sizestream (Results 1 – 3 of 3) sorted by relevance
55 pb_ostream_t sizestream = {0}; in main() local56 pb_encode(&sizestream, TestMessage_fields, &source); in main()57 serialized.resize(sizestream.bytes_written); in main()
161 pb_ostream_t sizestream = PB_OSTREAM_SIZING; in encode_array() local165 if (!pb_enc_varint(&sizestream, field)) in encode_array()166 PB_RETURN_ERROR(stream, PB_GET_ERROR(&sizestream)); in encode_array()170 size = sizestream.bytes_written; in encode_array()
93 pb_ostream_t sizestream = {0};94 pb_encode(&sizestream, Person_fields, &myperson);95 printf("Encoded size is %d\n", sizestream.bytes_written);