67 TestMessage testmessage = {{{
NULL}}};
73 testmessage.submsg.stringvalue.funcs.decode = &
print_string;
74 testmessage.submsg.stringvalue.arg =
"submsg {\n stringvalue: \"%s\"\n";
75 testmessage.submsg.int32value.funcs.decode = &
print_int32;
76 testmessage.submsg.int32value.arg =
" int32value: %ld\n";
77 testmessage.submsg.fixed32value.funcs.decode = &
print_fixed32;
78 testmessage.submsg.fixed32value.arg =
" fixed32value: %ld\n";
79 testmessage.submsg.fixed64value.funcs.decode = &
print_fixed64;
80 testmessage.submsg.fixed64value.arg =
" fixed64value: %ld\n}\n";
83 testmessage.stringvalue.arg =
"stringvalue: \"%s\"\n";
85 testmessage.int32value.arg =
"int32value: %ld\n";
87 testmessage.fixed32value.arg =
"fixed32value: %ld\n";
89 testmessage.fixed64value.arg =
"fixed64value: %ld\n";
91 testmessage.repeatedstring.arg =
"repeatedstring: \"%s\"\n";
93 if (!
pb_decode(&stream, TestMessage_fields, &testmessage))
size_t fread(void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict stream)