MOS Source Code
|
#include "pb.h"
Go to the source code of this file.
Classes | |
struct | pb_ostream_t |
Macros | |
#define | PB_ENCODE_DELIMITED 0x02U |
#define | PB_ENCODE_NULLTERMINATED 0x04U |
#define | pb_encode_delimited(s, f, d) |
#define | pb_encode_nullterminated(s, f, d) |
#define | PB_OSTREAM_SIZING {0,0,0,0,0} |
Functions | |
bool | pb_encode (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_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_write (pb_ostream_t *stream, const pb_byte_t *buf, size_t count) |
bool | pb_encode_tag_for_field (pb_ostream_t *stream, const pb_field_iter_t *field) |
bool | pb_encode_tag (pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number) |
bool | pb_encode_varint (pb_ostream_t *stream, uint64_t value) |
bool | pb_encode_svarint (pb_ostream_t *stream, int64_t value) |
bool | pb_encode_string (pb_ostream_t *stream, const pb_byte_t *buffer, size_t size) |
bool | pb_encode_fixed32 (pb_ostream_t *stream, const void *value) |
bool | pb_encode_fixed64 (pb_ostream_t *stream, const void *value) |
bool | pb_encode_submessage (pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct) |
#define PB_ENCODE_DELIMITED 0x02U |
Definition at line 81 of file pb_encode.h.
#define PB_ENCODE_NULLTERMINATED 0x04U |
Definition at line 82 of file pb_encode.h.
#define pb_encode_delimited | ( | s, | |
f, | |||
d ) |
Definition at line 86 of file pb_encode.h.
#define pb_encode_nullterminated | ( | s, | |
f, | |||
d ) |
Definition at line 87 of file pb_encode.h.
#define PB_OSTREAM_SIZING {0,0,0,0,0} |
Definition at line 116 of file pb_encode.h.
Definition at line 512 of file pb_encode.c.
Referenced by app_main(), do_encode(), do_roundtrip(), encode_MyMessage1(), encode_MyMessage2(), encode_MyMessage3(), generate_base_message(), generate_message(), main(), main(), main(), pb_encode_ex(), pb_encode_submessage(), pb_get_encoded_size(), rpc_do_pb_call(), rpc_write_result_pb(), test_OneofMessage(), and test_TestMessage().
Definition at line 557 of file pb_encode.c.
Referenced by main(), rpc_do_pb_call(), and rpc_write_result_pb().
Definition at line 63 of file pb_encode.c.
Referenced by app_main(), do_encode(), do_roundtrip(), generate_base_message(), generate_message(), main(), main(), main(), rand_fill_protobuf(), rpc_do_pb_call(), rpc_write_result_pb(), test_OneofMessage(), and test_TestMessage().
Definition at line 84 of file pb_encode.c.
Referenced by encode_array(), main(), pb_encode_ex(), pb_encode_fixed32(), pb_encode_fixed64(), pb_encode_string(), pb_encode_submessage(), pb_encode_varint(), pb_encode_varint_32(), rand_fill_protobuf(), and write_prefix().
bool pb_encode_tag_for_field | ( | pb_ostream_t * | stream, |
const pb_field_iter_t * | field ) |
Definition at line 681 of file pb_encode.c.
Referenced by crazyfieldcallback(), encode_array(), encode_basic_field(), encode_dictionary(), encode_fixed32(), encode_fixed64(), encode_int32(), encode_int32_array(), encode_repeatedstring(), encode_string(), encode_tree(), encode_unionmessage(), fieldcallback(), ListFilesResponse_callback(), main(), SubMsg3_callback(), TestMessage_values_callback(), write_array(), write_double(), write_ds8(), write_emptymsg(), write_fixed32(), write_fixed64(), write_intsizes(), write_limits(), write_repeated_emptymsg(), write_repeated_string(), write_repeated_submsg(), write_repeated_svarint(), write_repeated_varint(), write_string(), write_string(), write_submsg(), write_svarint(), and write_varint().
bool pb_encode_tag | ( | pb_ostream_t * | stream, |
pb_wire_type_t | wiretype, | ||
uint32_t | field_number ) |
Definition at line 675 of file pb_encode.c.
Referenced by encode_array(), main(), pb_encode_tag_for_field(), rand_fill_protobuf(), write_farray2(), write_repeated_double(), write_repeated_fixed32(), and write_repeated_fixed64().
Definition at line 607 of file pb_encode.c.
Referenced by crazyfieldcallback(), encode_array(), encode_int32(), encode_int32_array(), fieldcallback(), main(), pb_enc_bool(), pb_enc_varint(), pb_encode_string(), pb_encode_submessage(), pb_encode_svarint(), pb_encode_tag(), rand_fill_protobuf(), write_array(), write_farray2(), write_repeated_double(), write_repeated_fixed32(), write_repeated_fixed64(), write_repeated_varint(), and write_varint().
Definition at line 625 of file pb_encode.c.
Referenced by main(), pb_enc_varint(), write_repeated_svarint(), and write_svarint().
Definition at line 716 of file pb_encode.c.
Referenced by encode_repeatedstring(), encode_string(), main(), pb_enc_bytes(), pb_enc_fixed_length_bytes(), pb_enc_string(), SubMsg3_callback(), write_repeated_string(), write_string(), and write_string().
Definition at line 637 of file pb_encode.c.
Referenced by encode_fixed32(), pb_enc_fixed(), rand_fill_protobuf(), write_farray2(), write_fixed32(), and write_repeated_fixed32().
Definition at line 654 of file pb_encode.c.
Referenced by encode_fixed64(), pb_enc_fixed(), rand_fill_protobuf(), write_double(), write_fixed64(), write_repeated_double(), and write_repeated_fixed64().
bool pb_encode_submessage | ( | pb_ostream_t * | stream, |
const pb_msgdesc_t * | fields, | ||
const void * | src_struct ) |
Definition at line 724 of file pb_encode.c.
Referenced by encode_dictionary(), encode_tree(), encode_unionmessage(), ListFilesResponse_callback(), pb_enc_submessage(), pb_encode_ex(), TestMessage_values_callback(), write_ds8(), write_emptymsg(), write_intsizes(), write_limits(), write_repeated_emptymsg(), write_repeated_submsg(), and write_submsg().