8#include "alltypes.pb.h"
9#include "extensions.pb.h"
18 int32_t extensionfield1 = 12345;
20 ExtensionMessage extensionfield2 = {
"test", 54321};
26 ext1.type = &AllTypes_extensionfield1;
27 ext1.dest = &extensionfield1;
30 ext2.type = &ExtensionMessage_AllTypes_extensionfield2;
31 ext2.dest = &extensionfield2;
51 (
void)AllTypes_extensionfield1_tag;
52 (
void)ExtensionMessage_AllTypes_extensionfield2_tag;
size_t fwrite(const void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict stream)
MOSAPI void(1, 2) fatal_abort(const char *fmt
static pb_extension_t ext2
static pb_extension_t ext1
#define PB_GET_ERROR(stream)
#define pb_extension_init_zero
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)
pb_extension_t * extensions
#define SET_BINARY_MODE(file)