6#ifndef PB_ENCODE_H_INCLUDED
7#define PB_ENCODE_H_INCLUDED
67bool pb_encode(pb_ostream_t *stream,
const pb_msgdesc_t *fields,
const void *src_struct);
81#define PB_ENCODE_DELIMITED 0x02U
82#define PB_ENCODE_NULLTERMINATED 0x04U
83bool pb_encode_ex(pb_ostream_t *stream,
const pb_msgdesc_t *fields,
const void *src_struct,
unsigned int flags);
86#define pb_encode_delimited(s,f,d) pb_encode_ex(s,f,d, PB_ENCODE_DELIMITED)
87#define pb_encode_nullterminated(s,f,d) pb_encode_ex(s,f,d, PB_ENCODE_NULLTERMINATED)
116#define PB_OSTREAM_SIZING {0,0,0,0,0}
118#define PB_OSTREAM_SIZING {0,0,0,0}
141#ifndef PB_WITHOUT_64BIT
149#ifndef PB_WITHOUT_64BIT
162#ifndef PB_WITHOUT_64BIT
168#ifdef PB_CONVERT_DOUBLE_FLOAT
171bool pb_encode_float_as_double(pb_ostream_t *stream,
float value);
179bool pb_encode_submessage(pb_ostream_t *stream,
const pb_msgdesc_t *fields,
const void *src_struct);
bool pb_encode_ex(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct, unsigned int flags)
bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_iter_t *field)
bool pb_encode_varint(pb_ostream_t *stream, uint64_t value)
bool pb_encode_submessage(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct)
bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count)
bool pb_get_encoded_size(size_t *size, const pb_msgdesc_t *fields, const void *src_struct)
pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize)
bool pb_encode_fixed64(pb_ostream_t *stream, const void *value)
bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number)
bool pb_encode_fixed32(pb_ostream_t *stream, const void *value)
bool pb_encode_svarint(pb_ostream_t *stream, int64_t value)
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)
unsigned long long uint64_t
bool(* callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count)