9 MyMessage msg = MyMessage_init_zero;
12 msg.mybytes.size = 0xFFFFFFFF;
14 if (
pb_encode(&stream, MyMessage_fields, &msg))
16 fprintf(
stderr,
"Failure: expected pb_encode() to fail.\n");
MOSAPI s32 strcmp(const char *str1, const char *str2)
#define PB_GET_ERROR(stream)
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)