6#ifndef PB_ENCODE_H_INCLUDED
7#define PB_ENCODE_H_INCLUDED
80#define PB_ENCODE_DELIMITED 0x02U
81#define PB_ENCODE_NULLTERMINATED 0x04U
85#define pb_encode_delimited(s, f, d) pb_encode_ex(s, f, d, PB_ENCODE_DELIMITED)
86#define pb_encode_nullterminated(s, f, d) pb_encode_ex(s, f, d, PB_ENCODE_NULLTERMINATED)
90bool pb_get_encoded_size(
size_t *size,
const pb_msgdesc_t *fields,
const void *src_struct);
103pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf,
size_t bufsize);
115#define PB_OSTREAM_SIZING { 0, 0, 0, 0, 0 }
117#define PB_OSTREAM_SIZING { 0, 0, 0, 0 }
136bool pb_encode_tag(
pb_ostream_t *
stream, pb_wire_type_t wiretype, uint32_t field_number);
140#ifndef PB_WITHOUT_64BIT
148#ifndef PB_WITHOUT_64BIT
161#ifndef PB_WITHOUT_64BIT
167#ifdef PB_CONVERT_DOUBLE_FLOAT