Home
last modified time | relevance | path

Searched refs:upb_fielddef (Results 1 – 25 of 35) sorted by relevance

12

/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Ddef.h29 struct upb_fielddef;
30 typedef struct upb_fielddef upb_fielddef; typedef
77 const char *upb_fielddef_fullname(const upb_fielddef *f);
78 upb_fieldtype_t upb_fielddef_type(const upb_fielddef *f);
79 upb_descriptortype_t upb_fielddef_descriptortype(const upb_fielddef *f);
80 upb_label_t upb_fielddef_label(const upb_fielddef *f);
81 uint32_t upb_fielddef_number(const upb_fielddef *f);
82 const char *upb_fielddef_name(const upb_fielddef *f);
83 const char *upb_fielddef_jsonname(const upb_fielddef *f);
84 bool upb_fielddef_isextension(const upb_fielddef *f);
[all …]
Ddef.c18 struct upb_fielddef { struct
60 const upb_fielddef *fields; argument
86 const upb_fielddef **fields;
100 const upb_fielddef *exts;
169 uint32_t field_rank(const upb_fielddef *f) { in field_rank()
179 const upb_fielddef *f1 = *(upb_fielddef*const*)p1; in cmp_fields()
180 const upb_fielddef *f2 = *(upb_fielddef*const*)p2; in cmp_fields()
189 static uint32_t upb_handlers_selectorbaseoffset(const upb_fielddef *f) { in upb_handlers_selectorbaseoffset()
193 static uint32_t upb_handlers_selectorcount(const upb_fielddef *f) { in upb_handlers_selectorcount()
314 const char *upb_fielddef_fullname(const upb_fielddef *f) { in upb_fielddef_fullname()
[all …]
Dreflection.h37 upb_msgval upb_msg_get(const upb_msg *msg, const upb_fielddef *f);
42 upb_mutmsgval upb_msg_mutable(upb_msg *msg, const upb_fielddef *f, upb_arena *a);
45 bool upb_msg_has(const upb_msg *msg, const upb_fielddef *f);
48 const upb_fielddef *upb_msg_whichoneof(const upb_msg *msg,
53 void upb_msg_set(upb_msg *msg, const upb_fielddef *f, upb_msgval val,
57 void upb_msg_clearfield(upb_msg *msg, const upb_fielddef *f);
78 const upb_symtab *ext_pool, const upb_fielddef **f,
Dhandlers.h180 bool upb_handlers_setint32(upb_handlers *h, const upb_fielddef *f,
183 bool upb_handlers_setint64(upb_handlers *h, const upb_fielddef *f,
186 bool upb_handlers_setuint32(upb_handlers *h, const upb_fielddef *f,
189 bool upb_handlers_setuint64(upb_handlers *h, const upb_fielddef *f,
192 bool upb_handlers_setfloat(upb_handlers *h, const upb_fielddef *f,
195 bool upb_handlers_setdouble(upb_handlers *h, const upb_fielddef *f,
198 bool upb_handlers_setbool(upb_handlers *h, const upb_fielddef *f,
201 bool upb_handlers_setstartstr(upb_handlers *h, const upb_fielddef *f,
204 bool upb_handlers_setstring(upb_handlers *h, const upb_fielddef *f,
207 bool upb_handlers_setendstr(upb_handlers *h, const upb_fielddef *f,
[all …]
Dreflection.c76 static upb_msgval _upb_msg_getraw(const upb_msg *msg, const upb_fielddef *f) { in _upb_msg_getraw()
84 bool upb_msg_has(const upb_msg *msg, const upb_fielddef *f) { in upb_msg_has()
97 const upb_fielddef *upb_msg_whichoneof(const upb_msg *msg, in upb_msg_whichoneof()
99 const upb_fielddef *f = upb_oneofdef_field(o, 0); in upb_msg_whichoneof()
112 upb_msgval upb_msg_get(const upb_msg *msg, const upb_fielddef *f) { in upb_msg_get()
153 upb_mutmsgval upb_msg_mutable(upb_msg *msg, const upb_fielddef *f, in upb_msg_mutable()
166 const upb_fielddef *key = upb_msgdef_itof(entry, UPB_MAPENTRY_KEY); in upb_msg_mutable()
167 const upb_fielddef *value = upb_msgdef_itof(entry, UPB_MAPENTRY_VALUE); in upb_msg_mutable()
187 void upb_msg_set(upb_msg *msg, const upb_fielddef *f, upb_msgval val, in upb_msg_set()
200 void upb_msg_clearfield(upb_msg *msg, const upb_fielddef *f) { in upb_msg_clearfield()
[all …]
Djson_encode.c31 static void jsonenc_scalar(jsonenc *e, upb_msgval val, const upb_fielddef *f);
110 const upb_fielddef *seconds_f = upb_msgdef_itof(m, 1); in jsonenc_timestamp()
111 const upb_fielddef *nanos_f = upb_msgdef_itof(m, 2); in jsonenc_timestamp()
151 const upb_fielddef *seconds_f = upb_msgdef_itof(m, 1); in jsonenc_duration()
152 const upb_fielddef *nanos_f = upb_msgdef_itof(m, 2); in jsonenc_duration()
170 static void jsonenc_enum(int32_t val, const upb_fielddef *f, jsonenc *e) { in jsonenc_enum()
286 const upb_fielddef *val_f = upb_msgdef_itof(m, 1); in jsonenc_wrapper()
328 const upb_fielddef *type_url_f = upb_msgdef_itof(m, 1); in jsonenc_any()
329 const upb_fielddef *value_f = upb_msgdef_itof(m, 2); in jsonenc_any()
388 const upb_fielddef *paths_f = upb_msgdef_itof(m, 1); in jsonenc_fieldmask()
[all …]
Djson_decode.c30 const upb_fielddef *debug_field;
37 static upb_msgval jsondec_value(jsondec *d, const upb_fielddef *f);
46 static bool jsondec_isnullvalue(const upb_fielddef *f) { in jsondec_isnullvalue()
52 static bool jsondec_isvalue(const upb_fielddef *f) { in jsondec_isvalue()
670 static upb_msgval jsondec_int(jsondec *d, const upb_fielddef *f) { in jsondec_int()
706 static upb_msgval jsondec_uint(jsondec *d, const upb_fielddef *f) { in jsondec_uint()
742 static upb_msgval jsondec_double(jsondec *d, const upb_fielddef *f) { in jsondec_double()
778 static upb_msgval jsondec_strfield(jsondec *d, const upb_fielddef *f) { in jsondec_strfield()
787 static upb_msgval jsondec_enum(jsondec *d, const upb_fielddef *f) { in jsondec_enum()
817 static upb_msgval jsondec_bool(jsondec *d, const upb_fielddef *f) { in jsondec_bool()
[all …]
Dhandlers.c41 static int32_t trygetsel(upb_handlers *h, const upb_fielddef *f, in trygetsel()
54 static upb_selector_t handlers_getsel(upb_handlers *h, const upb_fielddef *f, in handlers_getsel()
61 static const void **returntype(upb_handlers *h, const upb_fielddef *f, in returntype()
66 static bool doset(upb_handlers *h, int32_t sel, const upb_fielddef *f, in doset()
126 const void *effective_closure_type(upb_handlers *h, const upb_fielddef *f, in effective_closure_type()
184 bool upb_handlers_set##name(upb_handlers *h, const upb_fielddef *f, \
226 bool upb_handlers_setsubhandlers(upb_handlers *h, const upb_fielddef *f, in upb_handlers_setsubhandlers()
239 const upb_fielddef *f) { in upb_handlers_getsubhandlers()
273 upb_handlertype_t upb_handlers_getprimitivehandlertype(const upb_fielddef *f) { in upb_handlers_getprimitivehandlertype()
287 bool upb_handlers_getselector(const upb_fielddef *f, upb_handlertype_t type, in upb_handlers_getselector()
[all …]
Dtext_encode.c75 static void txtenc_enum(int32_t val, const upb_fielddef *f, txtenc *e) { in txtenc_enum()
125 static void txtenc_field(txtenc *e, upb_msgval val, const upb_fielddef *f) { in txtenc_field()
182 const upb_fielddef *f) { in txtenc_array()
192 const upb_fielddef *f) { in txtenc_mapentry()
194 const upb_fielddef *key_f = upb_msgdef_field(entry, 0); in txtenc_mapentry()
195 const upb_fielddef *val_f = upb_msgdef_field(entry, 1); in txtenc_mapentry()
222 static void txtenc_map(txtenc *e, const upb_map *map, const upb_fielddef *f) { in txtenc_map()
232 const upb_fielddef *key_f = upb_msgdef_field(entry, 0); in txtenc_map()
367 const upb_fielddef *f; in txtenc_msg()
/external/protobuf/ruby/ext/google/protobuf_c/
Dstorage.c401 const upb_msgdef* tryget_map_entry_msgdef(const upb_fielddef* field) { in tryget_map_entry_msgdef()
411 const upb_msgdef *map_entry_msgdef(const upb_fielddef* field) { in map_entry_msgdef()
417 bool is_map_field(const upb_fielddef *field) { in is_map_field()
426 const upb_fielddef* map_field_key(const upb_fielddef* field) { in map_field_key()
431 const upb_fielddef* map_field_value(const upb_fielddef* field) { in map_field_value()
436 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef) { in map_entry_key()
437 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); in map_entry_key()
442 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef) { in map_entry_value()
443 const upb_fielddef* value_field = upb_msgdef_itof(msgdef, MAP_VALUE_FIELD); in map_entry_value()
453 const upb_fielddef* field) { in field_contains_hasbit()
[all …]
Dmessage.c82 static const upb_fielddef* which_oneof_field(MessageHeader* self, const upb_oneofdef* o) { in which_oneof_field()
86 const upb_fielddef* first_field; in which_oneof_field()
87 const upb_fielddef* f; in which_oneof_field()
128 static bool is_wrapper_type_field(const upb_fielddef* field) { in is_wrapper_type_field()
143 static VALUE ruby_wrapper_type(const upb_fielddef* field, const VALUE* value) { in ruby_wrapper_type()
154 const upb_fielddef **f, const upb_oneofdef **o) { in extract_method_call()
162 const upb_fielddef* test_f; in extract_method_call()
199 const upb_fielddef* test_f_wrapper; in extract_method_call()
227 const upb_fielddef* test_f_enum; in extract_method_call()
287 const upb_fielddef* f; in Message_method_missing()
[all …]
Dupb.h2324 struct upb_fielddef {
2375 upb_fielddef *upb_fielddef_new(const void *owner);
2378 UPB_REFCOUNTED_CMETHODS(upb_fielddef, upb_fielddef_upcast2)
2381 const char *upb_fielddef_fullname(const upb_fielddef *f);
2382 bool upb_fielddef_setfullname(upb_fielddef *f, const char *fullname,
2385 bool upb_fielddef_typeisset(const upb_fielddef *f);
2386 upb_fieldtype_t upb_fielddef_type(const upb_fielddef *f);
2387 upb_descriptortype_t upb_fielddef_descriptortype(const upb_fielddef *f);
2388 upb_label_t upb_fielddef_label(const upb_fielddef *f);
2389 uint32_t upb_fielddef_number(const upb_fielddef *f);
[all …]
Dprotobuf.h130 const upb_fielddef* fielddef;
371 VALUE field_type_class(const upb_fielddef* field);
383 bool is_map_field(const upb_fielddef* field);
384 const upb_fielddef* map_field_key(const upb_fielddef* field);
385 const upb_fielddef* map_field_value(const upb_fielddef* field);
388 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef);
389 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef);
513 const upb_fielddef* field);
514 VALUE layout_get_default(const upb_fielddef* field);
517 const upb_fielddef* field);
[all …]
Dencode_decode.c127 const upb_fielddef* f) { in newsubmsghandlerdata()
146 const upb_fielddef *f) { in newoneofhandlerdata()
418 const upb_fielddef* key_field; in new_map_handlerdata()
419 const upb_fielddef* value_field; in new_map_handlerdata()
521 const upb_fielddef *f, in add_handlers_for_repeated_field()
568 const upb_fielddef *f, in add_handlers_for_singular_field()
616 const upb_fielddef* fielddef, in add_handlers_for_mapfield()
633 const upb_fielddef* key_field = map_entry_key(msgdef); in add_handlers_for_mapentry()
634 const upb_fielddef* value_field = map_entry_value(msgdef); in add_handlers_for_mapentry()
654 const upb_fielddef *f, in add_handlers_for_oneof_field()
[all …]
Dupb.c1169 static const upb_fielddef *upb_trygetfield(const upb_refcounted *def) { in upb_trygetfield()
1170 return upb_isfield(def) ? (const upb_fielddef*)def : NULL; in upb_trygetfield()
1233 static bool upb_validate_field(upb_fielddef *f, upb_status *s) { in upb_validate_field()
1340 uint32_t field_rank(const upb_fielddef *f) { in field_rank()
1350 const upb_fielddef *f1 = *(upb_fielddef*const*)p1; in cmp_fields()
1351 const upb_fielddef *f2 = *(upb_fielddef*const*)p2; in cmp_fields()
1363 upb_fielddef **fields; in assign_msg_indices()
1381 upb_fielddef *f = upb_msg_iter_field(&j); in assign_msg_indices()
1397 upb_fielddef *f = fields[i]; in assign_msg_indices()
1422 upb_fielddef *f = upb_msg_iter_field(&j); in assign_msg_indices()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/bindings/lua/
Ddef.c59 void lupb_msgdef_pushsubmsgdef(lua_State *L, const upb_fielddef *f) { in lupb_msgdef_pushsubmsgdef()
68 const upb_fielddef *lupb_fielddef_check(lua_State *L, int narg) { in lupb_fielddef_check()
73 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_containingoneof()
80 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_containingtype()
87 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_default()
118 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_descriptortype()
124 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_hassubdef()
130 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_index()
136 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_isextension()
142 const upb_fielddef *f = lupb_fielddef_check(L, 1); in lupb_fielddef_label()
[all …]
Dmsg.c625 static const upb_fielddef *lupb_msg_tofield(lua_State *L, int msg, int field) { in lupb_msg_tofield()
632 static const upb_fielddef *lupb_msg_checkfield(lua_State *L, int msg, in lupb_msg_checkfield()
634 const upb_fielddef *f = lupb_msg_tofield(L, msg, field); in lupb_msg_checkfield()
680 const char *type, const upb_fielddef *f) { in lupb_msg_newud()
698 static void lupb_msg_newwrapper(lua_State *L, int narg, const upb_fielddef *f, in lupb_msg_newwrapper()
702 const upb_fielddef *key_f = upb_msgdef_itof(entry, UPB_MAPENTRY_KEY); in lupb_msg_newwrapper()
703 const upb_fielddef *val_f = upb_msgdef_itof(entry, UPB_MAPENTRY_VALUE); in lupb_msg_newwrapper()
732 const upb_fielddef *f) { in lupb_msg_typechecksubmsg()
778 const upb_fielddef *f = lupb_msg_checkfield(L, 1, 2); in lupb_msg_index()
806 const upb_fielddef *f = lupb_msg_checkfield(L, 1, 2); in lupb_msg_newindex()
[all …]
Dupb.h70 const upb_fielddef *lupb_fielddef_check(lua_State *L, int narg);
72 void lupb_msgdef_pushsubmsgdef(lua_State *L, const upb_fielddef *f);
/external/protobuf/php/ext/google/protobuf/
Dstorage.c510 const upb_msgdef* tryget_map_entry_msgdef(const upb_fielddef* field) { in tryget_map_entry_msgdef()
520 const upb_msgdef* map_entry_msgdef(const upb_fielddef* field) { in map_entry_msgdef()
526 bool is_map_field(const upb_fielddef* field) { in is_map_field()
530 const upb_fielddef* map_field_key(const upb_fielddef* field) { in map_field_key()
535 const upb_fielddef* map_field_value(const upb_fielddef* field) { in map_field_value()
540 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef) { in map_entry_key()
541 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); in map_entry_key()
546 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef) { in map_entry_value()
547 const upb_fielddef* value_field = upb_msgdef_itof(msgdef, MAP_VALUE_FIELD); in map_entry_value()
553 const upb_fielddef* field PHP_PROTO_TSRMLS_DC) { in field_type_class()
[all …]
Dencode_decode.c169 const upb_fielddef* f) { in newsubmsghandlerdata()
192 const upb_fielddef *f) { in newoneofhandlerdata()
648 const upb_fielddef* key_field; in new_map_handlerdata()
649 const upb_fielddef* value_field; in new_map_handlerdata()
695 const upb_fielddef* old_field = in DEFINE_ONEOF_HANDLER()
818 const upb_fielddef *f, in add_handlers_for_repeated_field()
860 const upb_fielddef *f, in add_handlers_for_singular_field()
902 const upb_fielddef* fielddef, in add_handlers_for_mapfield()
917 const upb_fielddef* key_field = map_entry_key(msgdef); in add_handlers_for_mapentry()
918 const upb_fielddef* value_field = map_entry_value(msgdef); in add_handlers_for_mapentry()
[all …]
Dupb.c1118 struct upb_fielddef { struct
1156 const upb_fielddef *fields; argument
1194 const upb_fielddef *exts;
1287 uint32_t field_rank(const upb_fielddef *f) { in field_rank()
1297 const upb_fielddef *f1 = *(upb_fielddef*const*)p1; in cmp_fields()
1298 const upb_fielddef *f2 = *(upb_fielddef*const*)p2; in cmp_fields()
1310 upb_fielddef **fields; in assign_msg_indices()
1328 upb_fielddef *f = upb_msg_iter_field(&j); in assign_msg_indices()
1340 upb_fielddef *f = fields[i]; in assign_msg_indices()
1365 upb_fielddef *f = upb_msg_iter_field(&j); in assign_msg_indices()
[all …]
Dprotobuf.h816 const upb_fielddef* fielddef;
943 const upb_fielddef* field, CACHED_VALUE* cache TSRMLS_DC);
945 const upb_fielddef* field, zval* val TSRMLS_DC);
952 const upb_fielddef* field);
954 const upb_fielddef* field);
1080 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef);
1081 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef);
1084 const upb_fielddef* field,
1098 bool is_map_field(const upb_fielddef* field);
1099 const upb_fielddef* map_field_key(const upb_fielddef* field);
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/pb/
Dtextprinter.c150 const upb_fielddef *f = handler_data; \
162 const upb_fielddef *f = handler_data; in textprinter_putbool()
187 const upb_fielddef *f = handler_data; in STRINGIFY_MACROVAL()
204 const upb_fielddef *f = handler_data; in textprinter_startstr()
222 const upb_fielddef *f = hd; in textprinter_putstr()
263 const upb_fielddef *f = upb_msgdef_field(m, i); in onmreg()
Dcompile_decoder.c424 static uint64_t get_encoded_tag(const upb_fielddef *f, int wire_type) { in get_encoded_tag()
432 static void putchecktag(compiler *c, const upb_fielddef *f, in putchecktag()
448 static upb_selector_t getsel(const upb_fielddef *f, upb_handlertype_t type) { in getsel()
470 const upb_fielddef *f, int wire_type) { in dispatchtarget()
487 static void putpush(compiler *c, const upb_fielddef *f) { in putpush()
503 const upb_fielddef *f) { in find_submethod()
522 const upb_fielddef *f, upb_handlertype_t type) { in maybeput()
526 static bool haslazyhandlers(const upb_handlers *h, const upb_fielddef *f) { in haslazyhandlers()
545 static void generate_msgfield(compiler *c, const upb_fielddef *f, in generate_msgfield()
606 static void generate_delimfield(compiler *c, const upb_fielddef *f, in generate_delimfield()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/json/
Dprinter.c62 strpc *newstrpc(upb_handlers *h, const upb_fielddef *f, in newstrpc()
618 const upb_fielddef *f, in set_enum_hd()
647 const upb_fielddef* key_field = upb_msgdef_itof(md, UPB_MAPENTRY_KEY); in printer_sethandlers_mapentry()
648 const upb_fielddef* value_field = upb_msgdef_itof(md, UPB_MAPENTRY_VALUE); in printer_sethandlers_mapentry()
1038 const upb_fielddef* type_field = upb_msgdef_itof(md, UPB_ANY_TYPE); in printer_sethandlers_any()
1039 const upb_fielddef* value_field = upb_msgdef_itof(md, UPB_ANY_VALUE); in printer_sethandlers_any()
1072 const upb_fielddef* f = upb_msgdef_itof(md, 1); in printer_sethandlers_fieldmask()
1092 const upb_fielddef* seconds_field = in printer_sethandlers_duration()
1094 const upb_fielddef* nanos_field = in printer_sethandlers_duration()
1112 const upb_fielddef* seconds_field = in printer_sethandlers_timestamp()
[all …]

12