6#include "extensions.pb.h"
23 pb_callback_t callback_def = {{0}};
24 pb_extension_t ext = {0};
25 BaseMessage msg = {0};
28 ext.type = &string_extension;
29 ext.dest = &callback_def;
30 msg.extensions = &ext;
34 msglen = stream.bytes_written;
40 pb_extension_t ext = {0};
41 BaseMessage msg = {0};
43 ext.type = &string_extension;
45 msg.extensions = &ext;
static bool write_string(pb_ostream_t *stream, const pb_field_t *field, void *const *arg)
pb_field_iter_t pb_field_t
bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct)
pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen)
bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_iter_t *field)
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)
bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size)