![]() |
MOS Source Code
|
Go to the source code of this file.
Classes | |
struct | pb_fields_seen_t |
Macros | |
#define | checkreturn |
#define | pb_int64_t int64_t |
#define | pb_uint64_t uint64_t |
Functions | |
static bool | buf_read (pb_istream_t *stream, pb_byte_t *buf, size_t count) |
static bool | read_raw_value (pb_istream_t *stream, pb_wire_type_t wire_type, pb_byte_t *buf, size_t *size) |
static bool | decode_basic_field (pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field) |
static bool | decode_static_field (pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field) |
static bool | decode_pointer_field (pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field) |
static bool | decode_callback_field (pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field) |
static bool | decode_field (pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field) |
static bool | default_extension_decoder (pb_istream_t *stream, pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type) |
static bool | decode_extension (pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_extension_t *extension) |
static bool | pb_field_set_to_default (pb_field_iter_t *field) |
static bool | pb_message_set_to_defaults (pb_field_iter_t *iter) |
static bool | pb_dec_bool (pb_istream_t *stream, const pb_field_iter_t *field) |
static bool | pb_dec_varint (pb_istream_t *stream, const pb_field_iter_t *field) |
static bool | pb_dec_bytes (pb_istream_t *stream, const pb_field_iter_t *field) |
static bool | pb_dec_string (pb_istream_t *stream, const pb_field_iter_t *field) |
static bool | pb_dec_submessage (pb_istream_t *stream, const pb_field_iter_t *field) |
static bool | pb_dec_fixed_length_bytes (pb_istream_t *stream, const pb_field_iter_t *field) |
static bool | pb_skip_varint (pb_istream_t *stream) |
static bool | pb_skip_string (pb_istream_t *stream) |
bool | pb_read (pb_istream_t *stream, pb_byte_t *buf, size_t count) |
static bool | pb_readbyte (pb_istream_t *stream, pb_byte_t *buf) |
pb_istream_t | pb_istream_from_buffer (const pb_byte_t *buf, size_t msglen) |
bool | pb_decode_varint32 (pb_istream_t *stream, uint32_t *dest) |
bool | pb_decode_varint (pb_istream_t *stream, uint64_t *dest) |
bool | pb_decode_tag (pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof) |
bool | pb_skip_field (pb_istream_t *stream, pb_wire_type_t wire_type) |
bool | pb_make_string_substream (pb_istream_t *stream, pb_istream_t *substream) |
bool | pb_close_string_substream (pb_istream_t *stream, pb_istream_t *substream) |
static bool | pb_decode_inner (pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct, unsigned int flags) |
bool | pb_decode_ex (pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct, unsigned int flags) |
bool | pb_decode (pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct) |
void | pb_release (const pb_msgdesc_t *fields, void *dest_struct) |
bool | pb_decode_bool (pb_istream_t *stream, bool *dest) |
bool | pb_decode_svarint (pb_istream_t *stream, int64_t *dest) |
bool | pb_decode_fixed32 (pb_istream_t *stream, void *dest) |
bool | pb_decode_fixed64 (pb_istream_t *stream, void *dest) |
#define checkreturn |
Definition at line 14 of file pb_decode.c.
Referenced by buf_read(), buf_write(), decode_basic_field(), decode_callback_field(), decode_extension(), decode_field(), decode_pointer_field(), decode_static_field(), default_extension_decoder(), default_extension_encoder(), encode_array(), encode_basic_field(), encode_callback_field(), encode_extension_field(), encode_field(), pb_check_proto3_default_value(), pb_close_string_substream(), pb_dec_bool(), pb_dec_bytes(), pb_dec_fixed_length_bytes(), pb_dec_string(), pb_dec_submessage(), pb_dec_varint(), pb_decode(), pb_decode_ex(), pb_decode_inner(), pb_decode_tag(), pb_decode_varint(), pb_decode_varint32(), pb_enc_bool(), pb_enc_bytes(), pb_enc_fixed(), pb_enc_fixed_length_bytes(), pb_enc_string(), pb_enc_submessage(), pb_enc_varint(), pb_encode(), pb_encode_ex(), pb_encode_fixed32(), pb_encode_fixed64(), pb_encode_string(), pb_encode_submessage(), pb_encode_svarint(), pb_encode_tag(), pb_encode_varint(), pb_encode_varint_32(), pb_make_string_substream(), pb_read(), pb_readbyte(), pb_skip_field(), pb_skip_string(), pb_skip_varint(), pb_write(), and read_raw_value().
#define pb_int64_t int64_t |
Definition at line 56 of file pb_decode.c.
Referenced by pb_dec_varint(), pb_decode_svarint(), pb_enc_varint(), and pb_encode_svarint().
#define pb_uint64_t uint64_t |
Definition at line 57 of file pb_decode.c.
Referenced by encode_array(), pb_dec_varint(), pb_decode_svarint(), pb_enc_varint(), pb_encode_string(), pb_encode_submessage(), pb_encode_svarint(), pb_encode_tag(), and pb_encode_varint().
Definition at line 68 of file pb_decode.c.
Referenced by pb_decode_tag(), pb_istream_from_buffer(), and pb_read().
|
static |
Definition at line 338 of file pb_decode.c.
Referenced by decode_callback_field().
|
static |
Definition at line 417 of file pb_decode.c.
Referenced by decode_pointer_field(), and decode_static_field().
|
static |
Definition at line 488 of file pb_decode.c.
Referenced by decode_field().
|
static |
Definition at line 645 of file pb_decode.c.
Referenced by decode_field().
|
static |
Definition at line 773 of file pb_decode.c.
Referenced by decode_field().
|
static |
Definition at line 819 of file pb_decode.c.
Referenced by default_extension_decoder(), pb_decode_inner(), and pb_message_set_to_defaults().
|
static |
Definition at line 850 of file pb_decode.c.
Referenced by decode_extension().
|
static |
Definition at line 867 of file pb_decode.c.
Referenced by pb_decode_inner().
|
static |
Definition at line 890 of file pb_decode.c.
Referenced by pb_message_set_to_defaults().
|
static |
Definition at line 972 of file pb_decode.c.
Referenced by decode_static_field(), pb_decode_inner(), and pb_field_set_to_default().
|
static |
Definition at line 1439 of file pb_decode.c.
Referenced by decode_basic_field().
|
static |
Definition at line 1444 of file pb_decode.c.
Referenced by decode_basic_field(), and main().
|
static |
Definition at line 1516 of file pb_decode.c.
Referenced by decode_basic_field(), and main().
|
static |
Definition at line 1556 of file pb_decode.c.
Referenced by decode_basic_field(), and main().
|
static |
Definition at line 1606 of file pb_decode.c.
Referenced by decode_basic_field().
|
static |
Definition at line 1658 of file pb_decode.c.
Referenced by decode_basic_field().
|
static |
Definition at line 253 of file pb_decode.c.
Referenced by main(), and pb_skip_field().
|
static |
Definition at line 264 of file pb_decode.c.
Referenced by main(), and pb_skip_field().
Definition at line 81 of file pb_decode.c.
Referenced by callback_check(), field_callback(), main(), pb_close_string_substream(), pb_dec_bytes(), pb_dec_fixed_length_bytes(), pb_dec_string(), pb_decode_fixed32(), pb_decode_fixed64(), pb_read(), pb_skip_field(), pb_skip_string(), pb_skip_varint(), print_string(), read_prefix(), read_raw_value(), read_repeated_string(), read_string(), and SubMsg3_callback().
Definition at line 124 of file pb_decode.c.
Referenced by pb_decode_varint(), and pb_decode_varint32().
Definition at line 142 of file pb_decode.c.
Referenced by app_main(), decode_callback_field(), do_callback_decode(), do_decode(), do_decode(), do_roundtrip(), main(), main(), main(), pb_message_set_to_defaults(), rpc_arg_pb(), rpc_do_pb_call(), test_Garbage(), test_OneofMessage(), and test_TestMessage().
Definition at line 171 of file pb_decode.c.
Referenced by main(), pb_dec_bytes(), pb_dec_fixed_length_bytes(), pb_dec_string(), pb_decode_bool(), pb_decode_tag(), pb_make_string_substream(), pb_skip_string(), and read_array().
Definition at line 230 of file pb_decode.c.
Referenced by main(), pb_dec_varint(), pb_decode_svarint(), print_int32(), raw_decode(), read_repeated_varint(), and read_varint().
bool pb_decode_tag | ( | pb_istream_t * | stream, |
pb_wire_type_t * | wire_type, | ||
uint32_t * | tag, | ||
bool * | eof ) |
Definition at line 278 of file pb_decode.c.
Referenced by decode_unionmessage_type(), pb_decode_inner(), pb_message_set_to_defaults(), and raw_decode().
bool pb_skip_field | ( | pb_istream_t * | stream, |
pb_wire_type_t | wire_type ) |
Definition at line 318 of file pb_decode.c.
Referenced by decode_callback_field(), decode_unionmessage_type(), and pb_decode_inner().
bool pb_make_string_substream | ( | pb_istream_t * | stream, |
pb_istream_t * | substream ) |
Definition at line 383 of file pb_decode.c.
Referenced by decode_callback_field(), decode_pointer_field(), decode_static_field(), decode_unionmessage_contents(), pb_dec_submessage(), pb_decode_ex(), and raw_decode().
bool pb_close_string_substream | ( | pb_istream_t * | stream, |
pb_istream_t * | substream ) |
Definition at line 398 of file pb_decode.c.
Referenced by decode_callback_field(), decode_pointer_field(), decode_static_field(), decode_unionmessage_contents(), pb_dec_submessage(), pb_decode_ex(), and raw_decode().
|
static |
Definition at line 1011 of file pb_decode.c.
Referenced by pb_dec_submessage(), and pb_decode_ex().
bool pb_decode_ex | ( | pb_istream_t * | stream, |
const pb_msgdesc_t * | fields, | ||
void * | dest_struct, | ||
unsigned int | flags ) |
Definition at line 1182 of file pb_decode.c.
Referenced by do_decode(), do_stream_decode(), main(), and pb_decode().
Definition at line 1210 of file pb_decode.c.
Referenced by app_main(), check_alltypes(), decode_unionmessage_contents(), do_callback_decode(), do_decode(), do_roundtrip(), handle_MyMessage1(), handle_MyMessage2(), handle_MyMessage3(), ListFilesResponse_callback(), main(), main(), main(), msg_callback(), print_person(), read_emptymsg(), read_limits(), read_repeated_submsg(), read_submsg(), rpc_arg_pb(), rpc_do_pb_call(), test_Garbage(), test_oneof_1(), test_oneof_2(), test_OneofMessage(), test_TestMessage(), and TestMessage_values_callback().
Definition at line 1355 of file pb_decode.c.
Referenced by check_alltypes(), do_callback_decode(), do_decode(), do_roundtrip(), do_stream_decode(), generate_base_message(), main(), pb_decode_ex(), test_OneofMessage(), test_TestMessage(), and AutoCleanup::~AutoCleanup().
Definition at line 1365 of file pb_decode.c.
Referenced by pb_dec_bool().
Definition at line 1375 of file pb_decode.c.
Referenced by pb_dec_varint(), read_repeated_svarint(), and read_svarint().
Definition at line 1389 of file pb_decode.c.
Referenced by decode_basic_field(), main(), print_fixed32(), raw_decode(), read_fixed32(), and read_repeated_fixed32().
Definition at line 1412 of file pb_decode.c.
Referenced by decode_basic_field(), main(), print_fixed64(), raw_decode(), read_double(), read_fixed64(), read_repeated_double(), and read_repeated_fixed64().