11 BaseMessage msg = BaseMessage_init_zero;
12 google_protobuf_Duration duration = google_protobuf_Duration_init_zero;
21 msg.has_details =
true;
22 strncpy(msg.details.type_url,
"type.googleapis.com/google.protobuf.Duration",
sizeof(msg.details.type_url));
25 duration.seconds = 99999;
28 status =
pb_encode(&stream, google_protobuf_Duration_fields, &duration);
30 msg.details.value.size = stream.bytes_written;
34 if (
pb_encode(&stream, BaseMessage_fields, &msg))
size_t fwrite(const void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict stream)