|
bool | _upb_symtab_loaddefinit (upb_symtab *s, const upb_def_init *init) |
|
static void | accumulate (upb_pb_encoder *e) |
|
static bool | accumulate_append (upb_json_parser *p, const char *buf, size_t len, bool can_alias) |
|
static void | accumulate_clear (upb_json_parser *p) |
|
static const char * | accumulate_getptr (upb_json_parser *p, size_t *len) |
|
static bool | accumulate_realloc (upb_json_parser *p, size_t need) |
|
static void | advance (upb_pbdecoder *d, size_t len) |
|
static void | advancetobuf (upb_pbdecoder *d, const char *buf, size_t len) |
|
static size_t | align_up (size_t val, size_t align) |
|
static size_t | align_up_max (size_t size) |
|
static double | as_double (uint64_t n) |
|
static float | as_float (uint32_t n) |
|
static void | assert_accumulate_empty (upb_json_parser *p) |
|
static bool | assign_msg_indices (upb_msgdef *m, upb_status *s) |
|
static void | assign_msg_wellknowntype (upb_msgdef *m) |
|
int32_t | b64lookup (unsigned char ch) |
|
static bool | base64_push (upb_json_parser *p, upb_selector_t sel, const char *ptr, size_t len) |
|
static size_t | begin (const upb_table *t) |
|
static bool | between (int32_t x, int32_t low, int32_t high) |
|
static size_t | bufleft (const upb_pbdecoder *d) |
|
static bool | build_filedef (const symtab_addctx *ctx, upb_filedef *file, const google_protobuf_FileDescriptorProto *file_proto) |
|
static size_t | callstacksize (upb_pbdecoder *d, size_t entries) |
|
static void | capture_begin (upb_json_parser *p, const char *ptr) |
|
static bool | capture_end (upb_json_parser *p, const char *ptr) |
|
static void | capture_resume (upb_json_parser *p, const char *ptr) |
|
static void | capture_suspend (upb_json_parser *p, const char **ptr) |
|
static void | check (upb_inttable *t) |
|
static bool | check_stack (upb_json_parser *p) |
|
static bool | checked_add (size_t a, size_t b, size_t *c) |
|
static void | checkpoint (upb_pbdecoder *d) |
|
bool | checkstart (upb_handlers *h, const upb_fielddef *f, upb_handlertype_t type, upb_status *status) |
|
static void | chkdefaulttype (const upb_fielddef *f, int ctype) |
|
int | cmp_fields (const void *p1, const void *p2) |
|
static bool | commit (upb_pb_encoder *e) |
|
static void | compile_method (compiler *c, upb_pbdecodermethod *method) |
|
static void | compile_methods (compiler *c) |
|
static UPB_FORCEINLINE void | consumebytes (upb_pbdecoder *d, void *buf, size_t bytes) |
|
static bool | consumes_input (opcode op) |
|
static void | count_types_in_file (const google_protobuf_FileDescriptorProto *file_proto, decl_counts *counts) |
|
static void | count_types_in_msg (const google_protobuf_DescriptorProto *msg_proto, decl_counts *counts) |
|
static bool | create_enumdef (const symtab_addctx *ctx, const char *prefix, const google_protobuf_EnumDescriptorProto *enum_proto) |
|
static bool | create_fielddef (const symtab_addctx *ctx, const char *prefix, upb_msgdef *m, const google_protobuf_FieldDescriptorProto *field_proto) |
|
static bool | create_msgdef (const symtab_addctx *ctx, const char *prefix, const google_protobuf_DescriptorProto *msg_proto) |
|
static bool | create_oneofdef (const symtab_addctx *ctx, upb_msgdef *m, const google_protobuf_OneofDescriptorProto *oneof_proto) |
|
static size_t | curbufleft (const upb_pbdecoder *d) |
|
static uint64_t | dbl2uint64 (double d) |
|
static UPB_FORCEINLINE int32_t | decode_fixed32 (upb_pbdecoder *d, uint32_t *u32) |
|
static UPB_FORCEINLINE int32_t | decode_fixed64 (upb_pbdecoder *d, uint64_t *u64) |
|
static UPB_FORCEINLINE int32_t | decode_v32 (upb_pbdecoder *d, uint32_t *u32) |
|
static UPB_FORCEINLINE int32_t | decode_varint (upb_pbdecoder *d, uint64_t *u64) |
|
static void | decoder_pop (upb_pbdecoder *d) |
|
static bool | decoder_push (upb_pbdecoder *d, uint64_t end) |
|
size_t | delim_remaining (const upb_pbdecoder *d) |
|
static int32_t | dispatch (upb_pbdecoder *d) |
|
static void | dispatchtarget (compiler *c, upb_pbdecodermethod *method, const upb_fielddef *f, int wire_type) |
|
static size_t | div_round_up (size_t n, size_t d) |
|
static bool | does_fieldmask_end (upb_json_parser *p) |
|
static bool | does_fieldmask_start (upb_json_parser *p) |
|
static bool | does_number_wrapper_end (upb_json_parser *p) |
|
static bool | does_number_wrapper_start (upb_json_parser *p) |
|
static bool | does_string_wrapper_end (upb_json_parser *p) |
|
static bool | does_string_wrapper_start (upb_json_parser *p) |
|
static bool | doset (upb_handlers *h, int32_t sel, const upb_fielddef *f, upb_handlertype_t type, upb_func *func, const upb_handlerattr *attr) |
|
const void * | effective_closure_type (upb_handlers *h, const upb_fielddef *f, upb_handlertype_t type) |
|
static upb_tabent * | emptyent (upb_table *t) |
|
static bool | encode_bytes (upb_pb_encoder *e, const void *data, size_t len) |
|
static bool | encode_enddelimfield (void *c, const void *hd) |
|
static bool | encode_endgroup (void *c, const void *hd) |
|
static bool | encode_fixed32 (upb_pb_encoder *e, uint32_t val) |
|
static bool | encode_fixed64 (upb_pb_encoder *e, uint64_t val) |
|
static void * | encode_startdelimfield (void *c, const void *hd) |
|
static void * | encode_startgroup (void *c, const void *hd) |
|
static void * | encode_startstr (void *c, const void *hd, size_t size_hint) |
|
static size_t | encode_strbuf (void *c, const void *hd, const char *buf, size_t len, const upb_bufhandle *h) |
|
static bool | encode_tag (upb_pb_encoder *e, const tag_t *tag) |
|
static bool | encode_unknown (void *c, const void *hd, const char *buf, size_t len) |
|
static bool | encode_varint (upb_pb_encoder *e, uint64_t val) |
|
static void | encoder_advance (upb_pb_encoder *e, size_t bytes) |
|
static bool | end (void *closure, const void *hd) |
|
static void | end_any_member (upb_json_parser *p, const char *ptr) |
|
static bool | end_any_membername (upb_json_parser *p) |
|
static bool | end_any_object (upb_json_parser *p, const char *ptr) |
|
static bool | end_any_stringval (upb_json_parser *p) |
|
static void | end_array (upb_json_parser *p) |
|
static bool | end_bool (upb_json_parser *p, bool val) |
|
static bool | end_day (upb_json_parser *p, const char *ptr) |
|
static bool | end_delim (upb_pb_encoder *e) |
|
static bool | end_duration_base (upb_json_parser *p, const char *ptr) |
|
static void | end_fieldmask_object (upb_json_parser *p) |
|
static bool | end_fieldmask_path (upb_json_parser *p) |
|
static bool | end_fieldmask_path_text (upb_json_parser *p, const char *ptr) |
|
static void | end_frame (upb_json_printer *p) |
|
static bool | end_hex (upb_json_parser *p) |
|
static bool | end_hour (upb_json_parser *p, const char *ptr) |
|
static void | end_listvalue_object (upb_json_parser *p) |
|
static void | end_member (upb_json_parser *p) |
|
static bool | end_membername (upb_json_parser *p) |
|
static bool | end_minute (upb_json_parser *p, const char *ptr) |
|
static bool | end_month (upb_json_parser *p, const char *ptr) |
|
static bool | end_null (upb_json_parser *p) |
|
static bool | end_number (upb_json_parser *p, const char *ptr) |
|
static bool | end_number_nontop (upb_json_parser *p, const char *ptr) |
|
static void | end_object (upb_json_parser *p) |
|
static bool | end_second (upb_json_parser *p, const char *ptr) |
|
static bool | end_stringval (upb_json_parser *p) |
|
static bool | end_stringval_nontop (upb_json_parser *p) |
|
static void | end_structvalue_object (upb_json_parser *p) |
|
static void | end_subobject (upb_json_parser *p) |
|
static void | end_subobject_full (upb_json_parser *p) |
|
static bool | end_text (upb_json_parser *p, const char *ptr) |
|
static bool | end_timestamp_fraction (upb_json_parser *p, const char *ptr) |
|
static bool | end_timestamp_zone (upb_json_parser *p, const char *ptr) |
|
static void | end_value_object (upb_json_parser *p) |
|
static void | end_wrapper_object (upb_json_parser *p) |
|
static bool | end_year (upb_json_parser *p, const char *ptr) |
|
static int | endfield (upb_textprinter *p) |
|
static bool | endmap (void *closure, const void *handler_data) |
|
static bool | endmsg (void *c, const void *hd, upb_status *status) |
|
static bool | endseq (void *closure, const void *handler_data) |
|
static bool | endseq_fieldmask (void *closure, const void *handler_data) |
|
int64_t | epoch (int year, int yday, int hour, int min, int sec) |
|
static bool | escape (upb_json_parser *p, const char *ptr) |
|
static char | escape_char (char in) |
|
uint32_t | field_rank (const upb_fielddef *f) |
|
static void | find_methods (compiler *c, const upb_handlers *h) |
|
static upb_pbdecodermethod * | find_submethod (const compiler *c, const upb_pbdecodermethod *method, const upb_fielddef *f) |
|
static const upb_tabent * | findentry (const upb_table *t, lookupkey_t key, uint32_t hash, eqlfunc_t *eql) |
|
static upb_tabent * | findentry_mutable (upb_table *t, lookupkey_t key, uint32_t hash, eqlfunc_t *eql) |
|
static uint32_t | flt2uint32 (float d) |
|
static size_t | fmt_bool (bool val, char *buf, size_t length) |
|
static size_t | fmt_double (double val, char *buf, size_t length) |
|
static size_t | fmt_float (float val, char *buf, size_t length) |
|
static size_t | fmt_int64_as_number (long long val, char *buf, size_t length) |
|
static size_t | fmt_int64_as_string (long long val, char *buf, size_t length) |
|
static size_t | fmt_uint64_as_number (unsigned long long val, char *buf, size_t length) |
|
static size_t | fmt_uint64_as_string (unsigned long long val, char *buf, size_t length) |
|
static void | freecompiler (compiler *c) |
|
static void | freegroup (mgroup *g) |
|
static void | freemethod (upb_pbdecodermethod *method) |
|
void | freestrpc (void *ptr) |
|
static void | generate_delimfield (compiler *c, const upb_fielddef *f, upb_pbdecodermethod *method) |
|
static void | generate_msgfield (compiler *c, const upb_fielddef *f, upb_pbdecodermethod *method) |
|
static void | generate_primitivefield (compiler *c, const upb_fielddef *f, upb_pbdecodermethod *method) |
|
static uint64_t | get_encoded_tag (const upb_fielddef *f, int wire_type) |
|
static UPB_FORCEINLINE int32_t | getbytes (upb_pbdecoder *d, void *buf, size_t bytes) |
|
static UPB_NOINLINE int32_t | getbytes_slow (upb_pbdecoder *d, void *buf, size_t bytes) |
|
static upb_tabent * | getentry_mutable (upb_table *t, uint32_t hash) |
|
static int32_t | getofs (uint32_t instruction) |
|
static upb_selector_t | getsel (const upb_fielddef *f, upb_handlertype_t type) |
|
static upb_selector_t | getsel_for_handlertype (upb_json_parser *p, upb_handlertype_t type) |
|
static void | goto_endmsg (upb_pbdecoder *d) |
|
static bool | handle_mapentry (upb_json_parser *p) |
|
static upb_selector_t | handlers_getsel (upb_handlers *h, const upb_fielddef *f, upb_handlertype_t type) |
|
static bool | haslazyhandlers (const upb_handlers *h, const upb_fielddef *f) |
|
static void | hexdigit (upb_json_parser *p, const char *ptr) |
|
static bool | in_buf (const char *p, const char *buf, const char *end) |
|
static bool | in_residual_buf (const upb_pbdecoder *d, const char *p) |
|
static int | indent (upb_textprinter *p) |
|
static bool | init (upb_table *t, upb_ctype_t ctype, uint8_t size_lg2, upb_alloc *a) |
|
static void | init_frame (upb_jsonparser_frame *frame) |
|
static void | insert (upb_table *t, lookupkey_t key, upb_tabkey tabkey, upb_value val, uint32_t hash, hashfunc_t *hashfunc, eqlfunc_t *eql) |
|
static int | instruction_len (uint32_t instr) |
|
static upb_tabval | int_arrent (const upb_inttable_iter *i) |
|
static const upb_tabent * | int_tabent (const upb_inttable_iter *i) |
|
static bool | inteql (upb_tabkey k1, lookupkey_t k2) |
|
static uint32_t | inthash (upb_tabkey key) |
|
static lookupkey_t | intkey (uintptr_t key) |
|
static upb_tabval * | inttable_val (upb_inttable *t, uintptr_t key) |
|
static const upb_tabval * | inttable_val_const (const upb_inttable *t, uintptr_t key) |
|
static bool | is_fieldmask (const upb_msgdef *m) |
|
UPB_INLINE bool | is_json_escaped (char c) |
|
static bool | is_number_wrapper_object (upb_json_parser *p) |
|
bool | is_pow2 (uint64_t v) |
|
static bool | is_power_of_two (size_t val) |
|
static bool | is_string_wrapper (const upb_msgdef *m) |
|
static bool | is_string_wrapper_object (upb_json_parser *p) |
|
static bool | is_top_level (upb_json_parser *p) |
|
static bool | is_wellknown_field (upb_json_parser *p, upb_wellknowntype_t type) |
|
static bool | is_wellknown_msg (upb_json_parser *p, upb_wellknowntype_t type) |
|
static bool | isfull (upb_table *t) |
|
static bool | isleap (int year) |
|
const UPB_INLINE char * | json_nice_escape (char c) |
|
static void | json_parser_any_frame_free (upb_jsonparser_any_frame *frame) |
|
static bool | json_parser_any_frame_has_type_url (upb_jsonparser_any_frame *frame) |
|
static bool | json_parser_any_frame_has_value (upb_jsonparser_any_frame *frame) |
|
static bool | json_parser_any_frame_has_value_after_type_url (upb_jsonparser_any_frame *frame) |
|
static bool | json_parser_any_frame_has_value_before_type_url (upb_jsonparser_any_frame *frame) |
|
static upb_jsonparser_any_frame * | json_parser_any_frame_new (upb_json_parser *p) |
|
static void | json_parser_any_frame_set_after_type_url_start_once (upb_jsonparser_any_frame *frame, const char *ptr) |
|
static void | json_parser_any_frame_set_before_type_url_end (upb_jsonparser_any_frame *frame, const char *ptr) |
|
static void | json_parser_any_frame_set_payload_type (upb_json_parser *p, upb_jsonparser_any_frame *frame, const upb_msgdef *payload_type) |
|
static void | json_parser_reset (upb_json_parser *p) |
|
static void | json_printer_reset (upb_json_printer *p) |
|
static void | label (compiler *c, unsigned int label) |
|
static int32_t | labelref (compiler *c, int label) |
|
int | log2ceil (uint64_t v) |
|
static bool | lookup (const upb_table *t, lookupkey_t key, upb_value *v, uint32_t hash, eqlfunc_t *eql) |
|
static bool | lower_camel_push (upb_json_parser *p, upb_selector_t sel, const char *ptr, size_t len) |
|
static const char * | makefullname (const symtab_addctx *ctx, const char *prefix, upb_strview name) |
|
static size_t | mapkey_bytes (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static bool | mapkey_endstr (void *closure, const void *handler_data) |
|
static size_t | mapkey_str (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static void * | mapkeyval_startstr (void *closure, const void *handler_data, size_t size_hint) |
|
static bool | mapvalue_endstr (void *closure, const void *handler_data) |
|
static bool | mapvalue_enum (void *closure, const void *handler_data, int32_t val) |
|
static void | maybeput (compiler *c, opcode op, const upb_handlers *h, const upb_fielddef *f, upb_handlertype_t type) |
|
const mgroup * | mgroup_new (const upb_handlers *dest, bool allowjit, bool lazy) |
|
static void | multipart_end (upb_json_parser *p) |
|
static void | multipart_start (upb_json_parser *p, upb_selector_t sel) |
|
static void | multipart_startaccum (upb_json_parser *p) |
|
static bool | multipart_text (upb_json_parser *p, const char *buf, size_t len, bool can_alias) |
|
uint32_t | MurmurHash2 (const void *key, size_t len, uint32_t seed) |
|
static upb_tabval * | mutable_array (upb_inttable *t) |
|
static upb_tabent * | mutable_entries (upb_table *t) |
|
static void | new_tag (upb_handlers *h, const upb_fielddef *f, upb_wiretype_t wt, upb_handlerattr *attr) |
|
static compiler * | newcompiler (mgroup *group, bool lazy) |
|
mgroup * | newgroup () |
|
static upb_pbdecodermethod * | newmethod (const upb_handlers *dest_handlers, mgroup *group) |
|
static str_t * | newstr (upb_alloc *alloc, const char *data, size_t len) |
|
strpc * | newstrpc (upb_handlers *h, const upb_fielddef *f, bool preserve_fieldnames) |
|
strpc * | newstrpc_str (upb_handlers *h, const char *str) |
|
static size_t | next (const upb_table *t, size_t i) |
|
bool | nonbase64 (unsigned char ch) |
|
static void | nullz (upb_status *status) |
|
uint64_t | offset (const upb_pbdecoder *d) |
|
static void | onmreg (const void *c, upb_handlers *h) |
|
bool | op_has_longofs (int32_t instruction) |
|
upb_pbdecoder_frame * | outer_frame (upb_pbdecoder *d) |
|
static upb_value | pack_def (const void *ptr, upb_deftype_t type) |
|
size_t | parse (void *closure, const void *hd, const char *buf, size_t size, const upb_bufhandle *handle) |
|
static bool | parse_default (const symtab_addctx *ctx, const char *str, size_t len, upb_fielddef *f) |
|
static bool | parse_mapentry_key (upb_json_parser *p) |
|
static bool | parse_number (upb_json_parser *p, bool is_quoted) |
|
static bool | parse_number_from_buffer (upb_json_parser *p, const char *buf, bool is_quoted) |
|
static int | parse_timestamp_number (upb_json_parser *p) |
|
static upb_selector_t | parser_getsel (upb_json_parser *p) |
|
static bool | parser_putbool (upb_json_parser *p, bool val) |
|
static upb_json_parsermethod * | parsermethod_new (upb_json_codecache *c, const upb_msgdef *md) |
|
static uint32_t | pcofs (compiler *c) |
|
static UPB_FORCEINLINE size_t | peekbytes (upb_pbdecoder *d, void *buf, size_t bytes) |
|
static UPB_NOINLINE size_t | peekbytes_slow (upb_pbdecoder *d, void *buf, size_t bytes) |
|
static void | print_comma (upb_json_printer *p) |
|
static void | print_data (upb_json_printer *p, const char *buf, unsigned int len) |
|
static void | print_enum_symbolic_name (upb_json_printer *p, const upb_enumdef *def, int32_t val) |
|
static bool | printer_enddurationmsg (void *closure, const void *handler_data, upb_status *s) |
|
static bool | printer_endmsg (void *closure, const void *handler_data, upb_status *s) |
|
static bool | printer_endmsg_fieldmask (void *closure, const void *handler_data, upb_status *s) |
|
static bool | printer_endmsg_noframe (void *closure, const void *handler_data, upb_status *s) |
|
static bool | printer_endtimestampmsg (void *closure, const void *handler_data, upb_status *s) |
|
void | printer_sethandlers (const void *closure, upb_handlers *h) |
|
void | printer_sethandlers_any (const void *closure, upb_handlers *h) |
|
void | printer_sethandlers_duration (const void *closure, upb_handlers *h) |
|
void | printer_sethandlers_fieldmask (const void *closure, upb_handlers *h) |
|
void | printer_sethandlers_listvalue (const void *closure, upb_handlers *h) |
|
void | printer_sethandlers_mapentry (const void *closure, bool preserve_fieldnames, upb_handlers *h) |
|
void | printer_sethandlers_structvalue (const void *closure, upb_handlers *h) |
|
void | printer_sethandlers_timestamp (const void *closure, upb_handlers *h) |
|
void | printer_sethandlers_value (const void *closure, upb_handlers *h) |
|
static bool | printer_startdurationmsg (void *closure, const void *handler_data) |
|
static bool | printer_startmsg (void *closure, const void *handler_data) |
|
static bool | printer_startmsg_fieldmask (void *closure, const void *handler_data) |
|
static bool | printer_startmsg_noframe (void *closure, const void *handler_data) |
|
static bool | printer_starttimestampmsg (void *closure, const void *handler_data) |
|
static bool | pushtagdelim (upb_pbdecoder *d, uint32_t arg) |
|
static void | put32 (compiler *c, uint32_t v) |
|
static void | putbuf (upb_pb_encoder *e, const char *buf, size_t len) |
|
static size_t | putbytes (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static void | putchecktag (compiler *c, const upb_fielddef *f, int wire_type, int dest) |
|
static int | putescaped (upb_textprinter *p, const char *buf, size_t len, bool preserve_utf8) |
|
bool | putf (upb_textprinter *p, const char *fmt,...) |
|
static bool | putkey (void *closure, const void *handler_data) |
|
static bool | putnanos (void *closure, const void *handler_data, int32_t nanos) |
|
static bool | putnull (void *closure, const void *handler_data, int32_t null) |
|
static void | putop (compiler *c, int op,...) |
|
static void | putpush (compiler *c, const upb_fielddef *f) |
|
static bool | putseconds (void *closure, const void *handler_data, int64_t seconds) |
|
static void | putsel (compiler *c, opcode op, upb_selector_t sel, const upb_handlers *h) |
|
static size_t | putstr (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static size_t | putstr_nokey (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static void | putstring (upb_json_printer *p, const char *buf, unsigned int len) |
|
static uint64_t | repack (uint64_t dispatch, int new_wt2) |
|
static size_t | repeated_bytes (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static bool | repeated_endstr (void *closure, const void *handler_data) |
|
static bool | repeated_enum (void *closure, const void *handler_data, int32_t val) |
|
static void * | repeated_startstr (void *closure, const void *handler_data, size_t size_hint) |
|
static void * | repeated_startstr_fieldmask (void *closure, const void *handler_data, size_t size_hint) |
|
static void * | repeated_startsubmsg (void *closure, const void *handler_data) |
|
static size_t | repeated_str (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static size_t | repeated_str_fieldmask (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static bool | reserve (upb_pb_encoder *e, size_t bytes) |
|
static bool | resolve_fielddef (const symtab_addctx *ctx, const char *prefix, upb_fielddef *f) |
|
static bool | resolvename (const upb_strtable *t, const upb_fielddef *f, const char *base, upb_strview sym, upb_deftype_t type, upb_status *status, const void **def) |
|
static const void ** | returntype (upb_handlers *h, const upb_fielddef *f, upb_handlertype_t type) |
|
static bool | rm (upb_table *t, lookupkey_t key, upb_value *val, upb_tabkey *removed, uint32_t hash, eqlfunc_t *eql) |
|
size_t | run_decoder_vm (upb_pbdecoder *d, const mgroup *group, const upb_bufhandle *handle) |
|
static size_t | saturating_multiply (size_t a, size_t b) |
|
static size_t | scalar_bytes (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static bool | scalar_endstr (void *closure, const void *handler_data) |
|
static bool | scalar_enum (void *closure, const void *handler_data, int32_t val) |
|
static void * | scalar_startstr (void *closure, const void *handler_data, size_t size_hint) |
|
static void * | scalar_startstr_nokey (void *closure, const void *handler_data, size_t size_hint) |
|
static void * | scalar_startstr_onlykey (void *closure, const void *handler_data, size_t size_hint) |
|
static void * | scalar_startsubmsg (void *closure, const void *handler_data) |
|
static size_t | scalar_str (void *closure, const void *handler_data, const char *str, size_t len, const upb_bufhandle *handle) |
|
static void | set_bytecode_handlers (mgroup *g) |
|
static void | set_default_default (const symtab_addctx *ctx, upb_fielddef *f) |
|
static void | set_delim_end (upb_pbdecoder *d) |
|
static void | set_enum_hd (upb_handlers *h, const upb_fielddef *f, bool preserve_fieldnames, upb_handlerattr *attr) |
|
static void | set_name_table (upb_json_parser *p, upb_jsonparser_frame *frame) |
|
static void | seterr (upb_pbdecoder *d, const char *msg) |
|
static void | setofs (uint32_t *instruction, int32_t ofs) |
|
static const char * | shortdefname (const char *fullname) |
|
static const char * | shortname (const char *longname) |
|
static int32_t | skip (upb_pbdecoder *d, size_t bytes) |
|
static size_t | stacksize (upb_pbdecoder *d, size_t entries) |
|
static void | start_any_member (upb_json_parser *p, const char *ptr) |
|
static void | start_any_object (upb_json_parser *p, const char *ptr) |
|
static bool | start_any_stringval (upb_json_parser *p) |
|
static bool | start_array (upb_json_parser *p) |
|
static void | start_day (upb_json_parser *p, const char *ptr) |
|
static bool | start_delim (upb_pb_encoder *e) |
|
static void | start_duration_base (upb_json_parser *p, const char *ptr) |
|
static void | start_fieldmask_object (upb_json_parser *p) |
|
static bool | start_fieldmask_path (upb_json_parser *p) |
|
static void | start_fieldmask_path_text (upb_json_parser *p, const char *ptr) |
|
static void | start_frame (upb_json_printer *p) |
|
static void | start_hex (upb_json_parser *p) |
|
static void | start_hour (upb_json_parser *p, const char *ptr) |
|
static upb_jsonparser_frame * | start_jsonparser_frame (upb_json_parser *p) |
|
static void | start_listvalue_object (upb_json_parser *p) |
|
static void | start_member (upb_json_parser *p) |
|
static void | start_minute (upb_json_parser *p, const char *ptr) |
|
static void | start_month (upb_json_parser *p, const char *ptr) |
|
static bool | start_number (upb_json_parser *p, const char *ptr) |
|
static void | start_object (upb_json_parser *p) |
|
static void | start_second (upb_json_parser *p, const char *ptr) |
|
static bool | start_stringval (upb_json_parser *p) |
|
static void | start_structvalue_object (upb_json_parser *p) |
|
static bool | start_subobject (upb_json_parser *p) |
|
static bool | start_subobject_full (upb_json_parser *p) |
|
static void | start_text (upb_json_parser *p, const char *ptr) |
|
static void | start_timestamp_base (upb_json_parser *p) |
|
static void | start_timestamp_fraction (upb_json_parser *p, const char *ptr) |
|
static void | start_timestamp_zone (upb_json_parser *p, const char *ptr) |
|
static void | start_value_object (upb_json_parser *p, int value_type) |
|
static void | start_wrapper_object (upb_json_parser *p) |
|
static void | start_year (upb_json_parser *p, const char *ptr) |
|
static void * | startmap (void *closure, const void *handler_data) |
|
static void * | startmap_nokey (void *closure, const void *handler_data) |
|
static bool | startmsg (void *c, const void *hd) |
|
static void * | startseq (void *closure, const void *handler_data) |
|
static void * | startseq_fieldmask (void *closure, const void *handler_data) |
|
static void * | startseq_nokey (void *closure, const void *handler_data) |
|
static const upb_tabent * | str_tabent (const upb_strtable_iter *i) |
|
static upb_tabkey | strcopy (lookupkey_t k2, upb_alloc *a) |
|
static bool | streql (upb_tabkey k1, lookupkey_t k2) |
|
static bool | streql2 (const char *a, size_t n, const char *b) |
|
static bool | streql_view (upb_strview view, const char *b) |
|
static uint32_t | strhash (upb_tabkey key) |
|
static void * | stringsink_start (void *_sink, const void *hd, size_t size_hint) |
|
static size_t | stringsink_string (void *_sink, const void *hd, const char *ptr, size_t len, const upb_bufhandle *handle) |
|
static lookupkey_t | strkey2 (const char *str, size_t len) |
|
static char * | strviewdup (const symtab_addctx *ctx, upb_strview view) |
|
static size_t | suspend_save (upb_pbdecoder *d) |
|
static void | switchtobuf (upb_pbdecoder *d, const char *buf, const char *end) |
|
static bool | symtab_add (const symtab_addctx *ctx, const char *name, upb_value v) |
|
const void * | symtab_resolve (const symtab_addctx *ctx, const upb_fielddef *f, const char *base, upb_strview sym, upb_deftype_t type) |
|
| T (double, double, dbl2uint64, encode_fixed64) |
|
static bool | textprinter_endmsg (void *c, const void *hd, upb_status *s) |
|
static bool | textprinter_endstr (void *closure, const void *handler_data) |
|
static bool | textprinter_endsubmsg (void *closure, const void *handler_data) |
|
static bool | textprinter_putbool (void *closure, const void *handler_data, bool val) |
|
static bool | textprinter_putenum (void *closure, const void *handler_data, int32_t val) |
|
static size_t | textprinter_putstr (void *closure, const void *hd, const char *buf, size_t len, const upb_bufhandle *handle) |
|
static void | textprinter_reset (upb_textprinter *p, bool single_line) |
|
static bool | textprinter_startmsg (void *c, const void *hd) |
|
static void * | textprinter_startstr (void *closure, const void *handler_data, size_t size_hint) |
|
static void * | textprinter_startsubmsg (void *closure, const void *handler_data) |
|
static upb_pb_encoder_segment * | top (upb_pb_encoder *e) |
|
static int32_t | trygetsel (upb_handlers *h, const upb_fielddef *f, upb_handlertype_t type) |
|
static void | uninit (upb_table *t, upb_alloc *a) |
|
static const void * | unpack_def (upb_value v, upb_deftype_t type) |
|
static bool | upb_append_unknown (upb_decstate *d, upb_decframe *frame, const char *start) |
|
static void | upb_arena_addblock (upb_arena *a, void *ptr, size_t size, bool owned) |
|
bool | upb_arena_addcleanup (upb_arena *a, void *ud, upb_cleanup_func *func) |
|
static mem_block * | upb_arena_allocblock (upb_arena *a, size_t size) |
|
size_t | upb_arena_bytesallocated (const upb_arena *a) |
|
static void * | upb_arena_doalloc (upb_alloc *alloc, void *ptr, size_t oldsize, size_t size) |
|
void | upb_arena_free (upb_arena *a) |
|
upb_arena * | upb_arena_init (void *mem, size_t n, upb_alloc *alloc) |
|
static void * | upb_array_add (upb_array *arr, size_t elements) |
|
upb_msgval | upb_array_get (const upb_array *arr, size_t i) |
|
static bool | upb_array_grow (upb_array *arr, size_t elements) |
|
upb_array * | upb_array_new (upb_fieldtype_t type, upb_arena *a) |
|
static void * | upb_array_reserve (upb_array *arr, size_t elements) |
|
bool | upb_array_set (upb_array *arr, size_t i, upb_msgval val) |
|
size_t | upb_array_size (const upb_array *arr) |
|
upb_fieldtype_t | upb_array_type (const upb_array *arr) |
|
bool | upb_bufsrc_putbuf (const char *buf, size_t len, upb_bytessink sink) |
|
bool | upb_byteshandler_setendstr (upb_byteshandler *h, upb_endfield_handlerfunc *func, void *d) |
|
bool | upb_byteshandler_setstartstr (upb_byteshandler *h, upb_startstr_handlerfunc *func, void *d) |
|
bool | upb_byteshandler_setstring (upb_byteshandler *h, upb_string_handlerfunc *func, void *d) |
|
static void * | upb_calloc (upb_arena *arena, size_t size) |
|
static void | upb_check_alloc (upb_table *t, upb_alloc *a) |
|
bool | upb_decode (const char *buf, size_t size, void *msg, const upb_msglayout *l) |
|
static bool | upb_decode_32bit (const char **ptr, const char *limit, uint32_t *val) |
|
static bool | upb_decode_32bitfield (upb_decstate *d, upb_decframe *frame, const char *field_start, const upb_msglayout_field *field) |
|
static bool | upb_decode_64bit (const char **ptr, const char *limit, uint64_t *val) |
|
static bool | upb_decode_64bitfield (upb_decstate *d, upb_decframe *frame, const char *field_start, const upb_msglayout_field *field) |
|
static bool | upb_decode_delimitedfield (upb_decstate *d, upb_decframe *frame, const char *field_start, const upb_msglayout_field *field) |
|
static bool | upb_decode_field (upb_decstate *d, upb_decframe *frame) |
|
static bool | upb_decode_fixedpacked (upb_array *arr, upb_strview data, int elem_size) |
|
static bool | upb_decode_message (upb_decstate *d, const char *limit, int group_number, char *msg, const upb_msglayout *l) |
|
static char * | upb_decode_prepareslot (upb_decframe *frame, const upb_msglayout_field *field) |
|
static void | upb_decode_setpresent (upb_decframe *frame, const upb_msglayout_field *field) |
|
static bool | upb_decode_string (const char **ptr, const char *limit, upb_strview *val) |
|
static bool | upb_decode_submsg (upb_decstate *d, upb_decframe *frame, const char *limit, const upb_msglayout_field *field, int group_number) |
|
static bool | upb_decode_tag (const char **ptr, const char *limit, int *field_number, int *wire_type) |
|
static bool | upb_decode_toarray (upb_decstate *d, upb_decframe *frame, const char *field_start, const upb_msglayout_field *field, upb_strview val) |
|
static bool | upb_decode_varint (const char **ptr, const char *limit, uint64_t *val) |
|
static bool | upb_decode_varint32 (const char **ptr, const char *limit, uint32_t *val) |
|
static bool | upb_decode_varintfield (upb_decstate *d, upb_decframe *frame, const char *field_start, const upb_msglayout_field *field) |
|
char * | upb_encode (const void *msg, const upb_msglayout *m, upb_arena *arena, size_t *size) |
|
static bool | upb_encode_array (upb_encstate *e, const char *field_mem, const upb_msglayout *m, const upb_msglayout_field *f) |
|
static bool | upb_encode_growbuffer (upb_encstate *e, size_t bytes) |
|
bool | upb_encode_message (upb_encstate *e, const char *msg, const upb_msglayout *m, size_t *size) |
|
static bool | upb_encode_reserve (upb_encstate *e, size_t bytes) |
|
static bool | upb_encode_scalarfield (upb_encstate *e, const char *field_mem, const upb_msglayout *m, const upb_msglayout_field *f, bool skip_zero_value) |
|
static size_t | upb_encode_varint (uint64_t val, char *buf) |
|
void | upb_enum_begin (upb_enum_iter *i, const upb_enumdef *e) |
|
bool | upb_enum_done (upb_enum_iter *iter) |
|
const char * | upb_enum_iter_name (upb_enum_iter *iter) |
|
int32_t | upb_enum_iter_number (upb_enum_iter *iter) |
|
void | upb_enum_next (upb_enum_iter *iter) |
|
int32_t | upb_enumdef_default (const upb_enumdef *e) |
|
const upb_filedef * | upb_enumdef_file (const upb_enumdef *e) |
|
const char * | upb_enumdef_fullname (const upb_enumdef *e) |
|
const char * | upb_enumdef_iton (const upb_enumdef *def, int32_t num) |
|
const char * | upb_enumdef_name (const upb_enumdef *e) |
|
bool | upb_enumdef_ntoi (const upb_enumdef *def, const char *name, size_t len, int32_t *num) |
|
int | upb_enumdef_numvals (const upb_enumdef *e) |
|
bool | upb_fielddef_checkdescriptortype (int32_t type) |
|
bool | upb_fielddef_checkintfmt (int32_t fmt) |
|
bool | upb_fielddef_checklabel (int32_t label) |
|
bool | upb_fielddef_checktype (int32_t type) |
|
const upb_oneofdef * | upb_fielddef_containingoneof (const upb_fielddef *f) |
|
const upb_msgdef * | upb_fielddef_containingtype (const upb_fielddef *f) |
|
bool | upb_fielddef_defaultbool (const upb_fielddef *f) |
|
double | upb_fielddef_defaultdouble (const upb_fielddef *f) |
|
float | upb_fielddef_defaultfloat (const upb_fielddef *f) |
|
int32_t | upb_fielddef_defaultint32 (const upb_fielddef *f) |
|
int64_t | upb_fielddef_defaultint64 (const upb_fielddef *f) |
|
const char * | upb_fielddef_defaultstr (const upb_fielddef *f, size_t *len) |
|
uint32_t | upb_fielddef_defaultuint32 (const upb_fielddef *f) |
|
uint64_t | upb_fielddef_defaultuint64 (const upb_fielddef *f) |
|
upb_descriptortype_t | upb_fielddef_descriptortype (const upb_fielddef *f) |
|
const upb_enumdef * | upb_fielddef_enumsubdef (const upb_fielddef *f) |
|
const char * | upb_fielddef_fullname (const upb_fielddef *f) |
|
size_t | upb_fielddef_getjsonname (const upb_fielddef *f, char *buf, size_t len) |
|
bool | upb_fielddef_haspresence (const upb_fielddef *f) |
|
bool | upb_fielddef_hassubdef (const upb_fielddef *f) |
|
uint32_t | upb_fielddef_index (const upb_fielddef *f) |
|
bool | upb_fielddef_isextension (const upb_fielddef *f) |
|
bool | upb_fielddef_ismap (const upb_fielddef *f) |
|
bool | upb_fielddef_isprimitive (const upb_fielddef *f) |
|
bool | upb_fielddef_isseq (const upb_fielddef *f) |
|
bool | upb_fielddef_isstring (const upb_fielddef *f) |
|
bool | upb_fielddef_issubmsg (const upb_fielddef *f) |
|
upb_label_t | upb_fielddef_label (const upb_fielddef *f) |
|
bool | upb_fielddef_lazy (const upb_fielddef *f) |
|
const upb_msgdef * | upb_fielddef_msgsubdef (const upb_fielddef *f) |
|
const char * | upb_fielddef_name (const upb_fielddef *f) |
|
uint32_t | upb_fielddef_number (const upb_fielddef *f) |
|
bool | upb_fielddef_packed (const upb_fielddef *f) |
|
uint32_t | upb_fielddef_selectorbase (const upb_fielddef *f) |
|
upb_fieldtype_t | upb_fielddef_type (const upb_fielddef *f) |
|
static upb_ctype_t | upb_fieldtotabtype (upb_fieldtype_t type) |
|
bool | upb_fieldtype_mapkeyok (upb_fieldtype_t type) |
|
const upb_filedef * | upb_filedef_dep (const upb_filedef *f, int i) |
|
int | upb_filedef_depcount (const upb_filedef *f) |
|
const upb_enumdef * | upb_filedef_enum (const upb_filedef *f, int i) |
|
int | upb_filedef_enumcount (const upb_filedef *f) |
|
const upb_msgdef * | upb_filedef_msg (const upb_filedef *f, int i) |
|
int | upb_filedef_msgcount (const upb_filedef *f) |
|
const char * | upb_filedef_name (const upb_filedef *f) |
|
const char * | upb_filedef_package (const upb_filedef *f) |
|
const char * | upb_filedef_phpnamespace (const upb_filedef *f) |
|
const char * | upb_filedef_phpprefix (const upb_filedef *f) |
|
upb_syntax_t | upb_filedef_syntax (const upb_filedef *f) |
|
static const upb_msglayout_field * | upb_find_field (const upb_msglayout *l, uint32_t field_number) |
|
static upb_array * | upb_getarr (upb_decframe *frame, const upb_msglayout_field *field) |
|
static upb_array * | upb_getorcreatearr (upb_decframe *frame, const upb_msglayout_field *field) |
|
static void * | upb_global_allocfunc (upb_alloc *alloc, void *ptr, size_t oldsize, size_t size) |
|
bool | upb_handlercache_addcleanup (upb_handlercache *c, void *p, upb_handlerfree *func) |
|
void | upb_handlercache_free (upb_handlercache *cache) |
|
const upb_handlers * | upb_handlercache_get (upb_handlercache *c, const upb_msgdef *md) |
|
upb_handlercache * | upb_handlercache_new (upb_handlers_callback *callback, const void *closure) |
|
bool | upb_handlers_addcleanup (upb_handlers *h, void *p, upb_handlerfree *func) |
|
bool | upb_handlers_getattr (const upb_handlers *h, upb_selector_t sel, upb_handlerattr *attr) |
|
upb_func * | upb_handlers_gethandler (const upb_handlers *h, upb_selector_t s, const void **handler_data) |
|
upb_handlertype_t | upb_handlers_getprimitivehandlertype (const upb_fielddef *f) |
|
bool | upb_handlers_getselector (const upb_fielddef *f, upb_handlertype_t type, upb_selector_t *s) |
|
const upb_handlers * | upb_handlers_getsubhandlers (const upb_handlers *h, const upb_fielddef *f) |
|
const upb_handlers * | upb_handlers_getsubhandlers_sel (const upb_handlers *h, upb_selector_t sel) |
|
const upb_msgdef * | upb_handlers_msgdef (const upb_handlers *h) |
|
static upb_handlers * | upb_handlers_new (const upb_msgdef *md, upb_handlercache *cache, upb_arena *arena) |
|
uint32_t | upb_handlers_selectorbaseoffset (const upb_fielddef *f) |
|
uint32_t | upb_handlers_selectorcount (const upb_fielddef *f) |
|
bool | upb_handlers_setendmsg (upb_handlers *h, upb_endmsg_handlerfunc *func, const upb_handlerattr *attr) |
|
bool | upb_handlers_setstartmsg (upb_handlers *h, upb_startmsg_handlerfunc *func, const upb_handlerattr *attr) |
|
bool | upb_handlers_setsubhandlers (upb_handlers *h, const upb_fielddef *f, const upb_handlers *sub) |
|
bool | upb_handlers_setunknown (upb_handlers *h, upb_unknown_handlerfunc *func, const upb_handlerattr *attr) |
|
void | upb_inttable_begin (upb_inttable_iter *i, const upb_inttable *t) |
|
void | upb_inttable_compact2 (upb_inttable *t, upb_alloc *a) |
|
size_t | upb_inttable_count (const upb_inttable *t) |
|
bool | upb_inttable_done (const upb_inttable_iter *i) |
|
bool | upb_inttable_init2 (upb_inttable *t, upb_ctype_t ctype, upb_alloc *a) |
|
bool | upb_inttable_insert2 (upb_inttable *t, uintptr_t key, upb_value val, upb_alloc *a) |
|
bool | upb_inttable_insertptr2 (upb_inttable *t, const void *key, upb_value val, upb_alloc *a) |
|
bool | upb_inttable_iter_isequal (const upb_inttable_iter *i1, const upb_inttable_iter *i2) |
|
uintptr_t | upb_inttable_iter_key (const upb_inttable_iter *i) |
|
void | upb_inttable_iter_setdone (upb_inttable_iter *i) |
|
upb_value | upb_inttable_iter_value (const upb_inttable_iter *i) |
|
bool | upb_inttable_lookup (const upb_inttable *t, uintptr_t key, upb_value *v) |
|
bool | upb_inttable_lookupptr (const upb_inttable *t, const void *key, upb_value *v) |
|
void | upb_inttable_next (upb_inttable_iter *iter) |
|
upb_value | upb_inttable_pop (upb_inttable *t) |
|
bool | upb_inttable_push2 (upb_inttable *t, upb_value val, upb_alloc *a) |
|
bool | upb_inttable_remove (upb_inttable *t, uintptr_t key, upb_value *val) |
|
bool | upb_inttable_removeptr (upb_inttable *t, const void *key, upb_value *val) |
|
bool | upb_inttable_replace (upb_inttable *t, uintptr_t key, upb_value val) |
|
bool | upb_inttable_sizedinit (upb_inttable *t, upb_ctype_t ctype, size_t asize, int hsize_lg2, upb_alloc *a) |
|
void | upb_inttable_uninit2 (upb_inttable *t, upb_alloc *a) |
|
static bool | upb_isalphanum (char c) |
|
static bool | upb_isbetween (char c, char low, char high) |
|
static bool | upb_isident (upb_strview name, bool full, upb_status *s) |
|
static bool | upb_isletter (char c) |
|
void | upb_json_codecache_free (upb_json_codecache *c) |
|
const upb_json_parsermethod * | upb_json_codecache_get (upb_json_codecache *c, const upb_msgdef *md) |
|
upb_json_codecache * | upb_json_codecache_new () |
|
upb_json_parser * | upb_json_parser_create (upb_arena *arena, const upb_json_parsermethod *method, const upb_symtab *symtab, upb_sink output, upb_status *status, bool ignore_json_unknown) |
|
upb_bytessink | upb_json_parser_input (upb_json_parser *p) |
|
const upb_byteshandler * | upb_json_parsermethod_inputhandler (const upb_json_parsermethod *m) |
|
upb_json_printer * | upb_json_printer_create (upb_arena *a, const upb_handlers *h, upb_bytessink output) |
|
upb_sink | upb_json_printer_input (upb_json_printer *p) |
|
upb_handlercache * | upb_json_printer_newcache (bool preserve_proto_fieldnames) |
|
bool | upb_map_del (upb_map *map, upb_msgval key) |
|
static upb_msgval | upb_map_fromkey (upb_fieldtype_t type, const char *key, size_t len) |
|
bool | upb_map_get (const upb_map *map, upb_msgval key, upb_msgval *val) |
|
upb_fieldtype_t | upb_map_keytype (const upb_map *map) |
|
upb_map * | upb_map_new (upb_fieldtype_t ktype, upb_fieldtype_t vtype, upb_arena *a) |
|
bool | upb_map_set (upb_map *map, upb_msgval key, upb_msgval val, upb_msgval *removed) |
|
size_t | upb_map_size (const upb_map *map) |
|
static void | upb_map_tokey (upb_fieldtype_t type, upb_msgval *key, const char **out_key, size_t *out_len) |
|
upb_fieldtype_t | upb_map_valuetype (const upb_map *map) |
|
void | upb_mapiter_begin (upb_mapiter *i, const upb_map *map) |
|
bool | upb_mapiter_done (const upb_mapiter *i) |
|
void | upb_mapiter_free (upb_mapiter *i, upb_alloc *a) |
|
bool | upb_mapiter_isequal (const upb_mapiter *i1, const upb_mapiter *i2) |
|
upb_msgval | upb_mapiter_key (const upb_mapiter *i) |
|
upb_mapiter * | upb_mapiter_new (const upb_map *t, upb_alloc *a) |
|
void | upb_mapiter_next (upb_mapiter *i) |
|
void | upb_mapiter_setdone (upb_mapiter *i) |
|
size_t | upb_mapiter_sizeof () |
|
upb_msgval | upb_mapiter_value (const upb_mapiter *i) |
|
static int64_t | upb_mktime (const struct tm *tp) |
|
void | upb_msg_addunknown (upb_msg *msg, const char *data, size_t len) |
|
upb_arena * | upb_msg_arena (const upb_msg *msg) |
|
static const upb_msglayout_field * | upb_msg_checkfield (int field_index, const upb_msglayout *l) |
|
void | upb_msg_field_begin (upb_msg_field_iter *iter, const upb_msgdef *m) |
|
bool | upb_msg_field_done (const upb_msg_field_iter *iter) |
|
bool | upb_msg_field_iter_isequal (const upb_msg_field_iter *iter1, const upb_msg_field_iter *iter2) |
|
void | upb_msg_field_iter_setdone (upb_msg_field_iter *iter) |
|
void | upb_msg_field_next (upb_msg_field_iter *iter) |
|
static uint8_t | upb_msg_fielddefsize (const upb_fielddef *f) |
|
static uint8_t | upb_msg_fieldsize (const upb_msglayout_field *field) |
|
upb_msgval | upb_msg_get (const upb_msg *msg, int field_index, const upb_msglayout *l) |
|
static upb_msg_internal * | upb_msg_getinternal (upb_msg *msg) |
|
static const upb_msg_internal * | upb_msg_getinternal_const (const upb_msg *msg) |
|
static upb_msg_internal_withext * | upb_msg_getinternalwithext (upb_msg *msg, const upb_msglayout *l) |
|
bool | upb_msg_getscalarhandlerdata (const upb_handlers *h, upb_selector_t s, upb_fieldtype_t *type, size_t *offset, int32_t *hasbit) |
|
const char * | upb_msg_getunknown (const upb_msg *msg, size_t *len) |
|
bool | upb_msg_has (const upb_msg *msg, int field_index, const upb_msglayout *l) |
|
static bool | upb_msg_inoneof (const upb_msglayout_field *field) |
|
static int | upb_msg_internalsize (const upb_msglayout *l) |
|
upb_fielddef * | upb_msg_iter_field (const upb_msg_field_iter *iter) |
|
const upb_oneofdef * | upb_msg_iter_oneof (const upb_msg_oneof_iter *iter) |
|
upb_msg * | upb_msg_new (const upb_msglayout *l, upb_arena *a) |
|
void | upb_msg_oneof_begin (upb_msg_oneof_iter *iter, const upb_msgdef *m) |
|
bool | upb_msg_oneof_done (const upb_msg_oneof_iter *iter) |
|
bool | upb_msg_oneof_iter_isequal (const upb_msg_oneof_iter *iter1, const upb_msg_oneof_iter *iter2) |
|
void | upb_msg_oneof_iter_setdone (upb_msg_oneof_iter *iter) |
|
void | upb_msg_oneof_next (upb_msg_oneof_iter *iter) |
|
static uint32_t * | upb_msg_oneofcase (const upb_msg *msg, int field_index, const upb_msglayout *l) |
|
void | upb_msg_set (upb_msg *msg, int field_index, upb_msgval val, const upb_msglayout *l) |
|
bool | upb_msg_setscalarhandler (upb_handlers *h, const upb_fielddef *f, size_t offset, int32_t hasbit) |
|
static size_t | upb_msg_sizeof (const upb_msglayout *l) |
|
const upb_filedef * | upb_msgdef_file (const upb_msgdef *m) |
|
const char * | upb_msgdef_fullname (const upb_msgdef *m) |
|
bool | upb_msgdef_isnumberwrapper (const upb_msgdef *m) |
|
const upb_fielddef * | upb_msgdef_itof (const upb_msgdef *m, uint32_t i) |
|
bool | upb_msgdef_lookupname (const upb_msgdef *m, const char *name, size_t len, const upb_fielddef **f, const upb_oneofdef **o) |
|
bool | upb_msgdef_mapentry (const upb_msgdef *m) |
|
const char * | upb_msgdef_name (const upb_msgdef *m) |
|
const upb_fielddef * | upb_msgdef_ntof (const upb_msgdef *m, const char *name, size_t len) |
|
const upb_oneofdef * | upb_msgdef_ntoo (const upb_msgdef *m, const char *name, size_t len) |
|
int | upb_msgdef_numfields (const upb_msgdef *m) |
|
int | upb_msgdef_numoneofs (const upb_msgdef *m) |
|
size_t | upb_msgdef_selectorcount (const upb_msgdef *m) |
|
uint32_t | upb_msgdef_submsgfieldcount (const upb_msgdef *m) |
|
upb_syntax_t | upb_msgdef_syntax (const upb_msgdef *m) |
|
upb_wellknowntype_t | upb_msgdef_wellknowntype (const upb_msgdef *m) |
|
void | upb_msgfactory_free (upb_msgfactory *f) |
|
const upb_msglayout * | upb_msgfactory_getlayout (upb_msgfactory *f, const upb_msgdef *m) |
|
upb_msgfactory * | upb_msgfactory_new (const upb_symtab *symtab) |
|
const upb_symtab * | upb_msgfactory_symtab (const upb_msgfactory *f) |
|
static void | upb_msglayout_free (upb_msglayout *l) |
|
static bool | upb_msglayout_init (const upb_msgdef *m, upb_msglayout *l, upb_msgfactory *factory) |
|
static size_t | upb_msglayout_place (upb_msglayout *l, size_t size) |
|
static upb_msgval | upb_msgval_fromval (upb_value val) |
|
static upb_msgval | upb_msgval_read (const void *p, size_t ofs, uint8_t size) |
|
static size_t | upb_msgval_sizeof (upb_fieldtype_t type) |
|
static size_t | upb_msgval_sizeof2 (upb_fieldtype_t type) |
|
static void | upb_msgval_write (void *p, size_t ofs, upb_msgval val, uint8_t size) |
|
bool | upb_ok (const upb_status *status) |
|
void | upb_oneof_begin (upb_oneof_iter *iter, const upb_oneofdef *o) |
|
bool | upb_oneof_done (upb_oneof_iter *iter) |
|
upb_fielddef * | upb_oneof_iter_field (const upb_oneof_iter *iter) |
|
void | upb_oneof_iter_setdone (upb_oneof_iter *iter) |
|
void | upb_oneof_next (upb_oneof_iter *iter) |
|
const upb_msgdef * | upb_oneofdef_containingtype (const upb_oneofdef *o) |
|
uint32_t | upb_oneofdef_index (const upb_oneofdef *o) |
|
const upb_fielddef * | upb_oneofdef_itof (const upb_oneofdef *o, uint32_t num) |
|
const char * | upb_oneofdef_name (const upb_oneofdef *o) |
|
const upb_fielddef * | upb_oneofdef_ntof (const upb_oneofdef *o, const char *name, size_t length) |
|
int | upb_oneofdef_numfields (const upb_oneofdef *o) |
|
upb_pb_encoder * | upb_pb_encoder_create (upb_arena *arena, const upb_handlers *h, upb_bytessink output) |
|
upb_sink | upb_pb_encoder_input (upb_pb_encoder *e) |
|
upb_handlercache * | upb_pb_encoder_newcache () |
|
void | upb_pb_encoder_reset (upb_pb_encoder *e) |
|
bool | upb_pbcodecache_allowjit (const upb_pbcodecache *c) |
|
void | upb_pbcodecache_free (upb_pbcodecache *c) |
|
const upb_pbdecodermethod * | upb_pbcodecache_get (upb_pbcodecache *c, const upb_msgdef *md) |
|
upb_pbcodecache * | upb_pbcodecache_new (upb_handlercache *dest) |
|
void | upb_pbcodecache_setallowjit (upb_pbcodecache *c, bool allow) |
|
uint64_t | upb_pbdecoder_bytesparsed (const upb_pbdecoder *d) |
|
UPB_NOINLINE int32_t | upb_pbdecoder_checktag_slow (upb_pbdecoder *d, uint64_t expected) |
|
upb_pbdecoder * | upb_pbdecoder_create (upb_arena *a, const upb_pbdecodermethod *m, upb_sink sink, upb_status *status) |
|
size_t | upb_pbdecoder_decode (void *decoder, const void *group, const char *buf, size_t size, const upb_bufhandle *handle) |
|
int32_t | upb_pbdecoder_decode_f32 (upb_pbdecoder *d, uint32_t *u32) |
|
int32_t | upb_pbdecoder_decode_f64 (upb_pbdecoder *d, uint64_t *u64) |
|
UPB_NOINLINE int32_t | upb_pbdecoder_decode_varint_slow (upb_pbdecoder *d, uint64_t *u64) |
|
bool | upb_pbdecoder_end (void *closure, const void *handler_data) |
|
upb_bytessink | upb_pbdecoder_input (upb_pbdecoder *d) |
|
size_t | upb_pbdecoder_maxnesting (const upb_pbdecoder *d) |
|
const upb_pbdecodermethod * | upb_pbdecoder_method (const upb_pbdecoder *d) |
|
void | upb_pbdecoder_reset (upb_pbdecoder *d) |
|
int32_t | upb_pbdecoder_resume (upb_pbdecoder *d, void *p, const char *buf, size_t size, const upb_bufhandle *handle) |
|
void | upb_pbdecoder_seterr (upb_pbdecoder *d, const char *msg) |
|
bool | upb_pbdecoder_setmaxnesting (upb_pbdecoder *d, size_t max) |
|
int32_t | upb_pbdecoder_skipunknown (upb_pbdecoder *d, int32_t fieldnum, uint8_t wire_type) |
|
void * | upb_pbdecoder_startbc (void *closure, const void *pc, size_t size_hint) |
|
void * | upb_pbdecoder_startjit (void *closure, const void *hd, size_t size_hint) |
|
size_t | upb_pbdecoder_suspend (upb_pbdecoder *d) |
|
const upb_handlers * | upb_pbdecodermethod_desthandlers (const upb_pbdecodermethod *m) |
|
const upb_byteshandler * | upb_pbdecodermethod_inputhandler (const upb_pbdecodermethod *m) |
|
bool | upb_pbdecodermethod_isnative (const upb_pbdecodermethod *m) |
|
void | upb_pbdecodermethodopts_setlazy (upb_pbcodecache *c, bool lazy) |
|
static bool | upb_put_bytes (upb_encstate *e, const void *data, size_t len) |
|
static bool | upb_put_double (upb_encstate *e, double d) |
|
static bool | upb_put_fixed32 (upb_encstate *e, uint32_t val) |
|
static bool | upb_put_fixed64 (upb_encstate *e, uint64_t val) |
|
static bool | upb_put_fixedarray (upb_encstate *e, const upb_array *arr, size_t size) |
|
static bool | upb_put_float (upb_encstate *e, float d) |
|
static bool | upb_put_tag (upb_encstate *e, int field_number, int wire_type) |
|
static bool | upb_put_varint (upb_encstate *e, uint64_t val) |
|
static uint32_t | upb_readcase (const char *msg, const upb_msglayout_field *f) |
|
static bool | upb_readhasbit (const char *msg, const upb_msglayout_field *f) |
|
static size_t | upb_roundup_pow2 (size_t bytes) |
|
static void | upb_set32 (void *msg, size_t ofs, uint32_t val) |
|
static void | upb_sethasbit (upb_decframe *frame, const upb_msglayout_field *field) |
|
static void | upb_setoneofcase (upb_decframe *frame, const upb_msglayout_field *field) |
|
static bool | upb_skip_unknownfielddata (upb_decstate *d, upb_decframe *frame, int field_number, int wire_type) |
|
static bool | upb_skip_unknowngroup (upb_decstate *d, int field_number, const char *limit) |
|
void | upb_status_clear (upb_status *status) |
|
const char * | upb_status_errmsg (const upb_status *status) |
|
void | upb_status_seterrf (upb_status *status, const char *fmt,...) |
|
void | upb_status_seterrmsg (upb_status *status, const char *msg) |
|
void | upb_status_vseterrf (upb_status *status, const char *fmt, va_list args) |
|
char * | upb_strdup (const char *s, upb_alloc *a) |
|
char * | upb_strdup2 (const char *s, size_t len, upb_alloc *a) |
|
void | upb_stringsink_init (upb_stringsink *sink) |
|
void | upb_stringsink_uninit (upb_stringsink *sink) |
|
void | upb_strtable_begin (upb_strtable_iter *i, const upb_strtable *t) |
|
bool | upb_strtable_done (const upb_strtable_iter *i) |
|
bool | upb_strtable_init2 (upb_strtable *t, upb_ctype_t ctype, upb_alloc *a) |
|
bool | upb_strtable_insert3 (upb_strtable *t, const char *k, size_t len, upb_value v, upb_alloc *a) |
|
bool | upb_strtable_iter_isequal (const upb_strtable_iter *i1, const upb_strtable_iter *i2) |
|
const char * | upb_strtable_iter_key (const upb_strtable_iter *i) |
|
size_t | upb_strtable_iter_keylength (const upb_strtable_iter *i) |
|
void | upb_strtable_iter_setdone (upb_strtable_iter *i) |
|
upb_value | upb_strtable_iter_value (const upb_strtable_iter *i) |
|
bool | upb_strtable_lookup2 (const upb_strtable *t, const char *key, size_t len, upb_value *v) |
|
void | upb_strtable_next (upb_strtable_iter *i) |
|
bool | upb_strtable_remove3 (upb_strtable *t, const char *key, size_t len, upb_value *val, upb_alloc *alloc) |
|
bool | upb_strtable_resize (upb_strtable *t, size_t size_lg2, upb_alloc *a) |
|
void | upb_strtable_uninit2 (upb_strtable *t, upb_alloc *a) |
|
const upb_filedef * | upb_symtab_addfile (upb_symtab *s, const google_protobuf_FileDescriptorProto *file_proto, upb_status *status) |
|
static bool | upb_symtab_addtotabs (upb_symtab *s, symtab_addctx *ctx, upb_status *status) |
|
void | upb_symtab_free (upb_symtab *s) |
|
const upb_enumdef * | upb_symtab_lookupenum (const upb_symtab *s, const char *sym) |
|
const upb_filedef * | upb_symtab_lookupfile (const upb_symtab *s, const char *name) |
|
const upb_msgdef * | upb_symtab_lookupmsg (const upb_symtab *s, const char *sym) |
|
const upb_msgdef * | upb_symtab_lookupmsg2 (const upb_symtab *s, const char *sym, size_t len) |
|
upb_symtab * | upb_symtab_new () |
|
upb_textprinter * | upb_textprinter_create (upb_arena *arena, const upb_handlers *h, upb_bytessink output) |
|
upb_sink | upb_textprinter_input (upb_textprinter *p) |
|
upb_handlercache * | upb_textprinter_newcache () |
|
void | upb_textprinter_setsingleline (upb_textprinter *p, bool single_line) |
|
static upb_value | upb_toval (upb_msgval val) |
|
upb_decoderet | upb_vdecode_max8_branch32 (upb_decoderet r) |
|
upb_decoderet | upb_vdecode_max8_branch64 (upb_decoderet r) |
|
static int32_t | upb_zzdecode_32 (uint32_t n) |
|
static int64_t | upb_zzdecode_64 (uint64_t n) |
|
static uint32_t | upb_zzencode_32 (int32_t n) |
|
static uint64_t | upb_zzencode_64 (int64_t n) |
|