8#ifndef PB_ENCODE_H_INCLUDED
9#define PB_ENCODE_H_INCLUDED
89#define PB_ENCODE_DELIMITED 0x02U
90#define PB_ENCODE_NULLTERMINATED 0x04U
94#define pb_encode_delimited(s,f,d) pb_encode_ex(s,f,d, PB_ENCODE_DELIMITED)
95#define pb_encode_nullterminated(s,f,d) pb_encode_ex(s,f,d, PB_ENCODE_NULLTERMINATED)
124#define PB_OSTREAM_SIZING {0,0,0,0,0}
126#define PB_OSTREAM_SIZING {0,0,0,0}
149#ifndef PB_WITHOUT_64BIT
157#ifndef PB_WITHOUT_64BIT
170#ifndef PB_WITHOUT_64BIT
176#ifdef PB_CONVERT_DOUBLE_FLOAT
179bool pb_encode_float_as_double(
pb_ostream_t *stream,
float value);
uint_least8_t pb_byte_t
Definition pb.h:228
pb_wire_type_t
Definition pb.h:430
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)
Definition pb_encode.h:26
size_t bytes_written
Definition pb_encode.h:49
bool(* callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count)
Definition pb_encode.h:36
const char * errmsg
Definition pb_encode.h:53
void * state
Definition pb_encode.h:43
size_t max_size
Definition pb_encode.h:46