Home
last modified time | relevance | path

Searched refs:upb_msgval (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Dreflection.h23 } upb_msgval; typedef
37 upb_msgval upb_msg_get(const upb_msg *msg, const upb_fielddef *f);
53 void upb_msg_set(upb_msg *msg, const upb_fielddef *f, upb_msgval val,
79 upb_msgval *val, size_t *iter);
101 upb_msgval upb_array_get(const upb_array *arr, size_t i);
104 void upb_array_set(upb_array *arr, size_t i, upb_msgval val);
107 bool upb_array_append(upb_array *array, upb_msgval val, upb_arena *arena);
125 bool upb_map_get(const upb_map *map, upb_msgval key, upb_msgval *val);
132 bool upb_map_set(upb_map *map, upb_msgval key, upb_msgval val,
136 bool upb_map_delete(upb_map *map, upb_msgval key);
[all …]
Dreflection.c76 static upb_msgval _upb_msg_getraw(const upb_msg *msg, const upb_fielddef *f) { in _upb_msg_getraw()
79 upb_msgval val = {0}; in _upb_msg_getraw()
112 upb_msgval upb_msg_get(const upb_msg *msg, const upb_fielddef *f) { in upb_msg_get()
117 upb_msgval val = {0}; in upb_msg_get()
187 void upb_msg_set(upb_msg *msg, const upb_fielddef *f, upb_msgval val, in upb_msg_set()
221 upb_msgval *out_val, size_t *iter) { in upb_msg_next()
224 const upb_msgval zero = {0}; in upb_msg_next()
228 upb_msgval val = _upb_msg_getraw(msg, f); in upb_msg_next()
234 upb_msgval test = val; in upb_msg_next()
262 upb_msgval val; in _upb_msg_discardunknown()
[all …]
Djson_decode.c37 static upb_msgval jsondec_value(jsondec *d, const upb_fielddef *f);
670 static upb_msgval jsondec_int(jsondec *d, const upb_fielddef *f) { in jsondec_int()
671 upb_msgval val; in jsondec_int()
706 static upb_msgval jsondec_uint(jsondec *d, const upb_fielddef *f) { in jsondec_uint()
707 upb_msgval val; in jsondec_uint()
742 static upb_msgval jsondec_double(jsondec *d, const upb_fielddef *f) { in jsondec_double()
744 upb_msgval val; in jsondec_double()
778 static upb_msgval jsondec_strfield(jsondec *d, const upb_fielddef *f) { in jsondec_strfield()
779 upb_msgval val; in jsondec_strfield()
787 static upb_msgval jsondec_enum(jsondec *d, const upb_fielddef *f) { in jsondec_enum()
[all …]
Dtext_encode.c125 static void txtenc_field(txtenc *e, upb_msgval val, const upb_fielddef *f) { in txtenc_field()
191 static void txtenc_mapentry(txtenc *e, upb_msgval key, upb_msgval val, in txtenc_mapentry()
226 upb_msgval key = upb_mapiter_key(map, iter); in txtenc_map()
227 upb_msgval val = upb_mapiter_value(map, iter); in txtenc_map()
239 upb_msgval key, val; in txtenc_map()
368 upb_msgval val; in txtenc_msg()
Djson_encode.c31 static void jsonenc_scalar(jsonenc *e, upb_msgval val, const upb_fielddef *f);
287 upb_msgval val = upb_msg_get(msg, val_f); in jsonenc_wrapper()
418 upb_msgval key = upb_mapiter_key(fields, iter); in jsonenc_struct()
419 upb_msgval val = upb_mapiter_value(fields, iter); in jsonenc_struct()
444 upb_msgval elem = upb_array_get(values, i); in jsonenc_listvalue()
458 upb_msgval val; in jsonenc_value()
527 static void jsonenc_scalar(jsonenc *e, upb_msgval val, const upb_fielddef *f) { in jsonenc_scalar()
565 static void jsonenc_mapkey(jsonenc *e, upb_msgval val, const upb_fielddef *f) { in jsonenc_mapkey()
631 upb_msgval val, bool *first) { in jsonenc_fieldval()
654 upb_msgval val; in jsonenc_msgfields()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/bindings/lua/
Dmsg.c94 static void lupb_msg_newmsgwrapper(lua_State *L, int narg, upb_msgval val);
237 static upb_msgval lupb_tomsgval(lua_State *L, upb_fieldtype_t type, int narg, in lupb_tomsgval()
239 upb_msgval ret; in lupb_tomsgval()
294 upb_msgval val) { in lupb_pushmsgval()
401 upb_msgval msgval = lupb_tomsgval(L, larray->type, 3, 1, LUPB_COPY); in lupb_array_newindex()
427 upb_msgval val = upb_array_get(larray->arr, n); in lupb_array_index()
509 upb_msgval key = lupb_tomsgval(L, lmap->key_type, 2, 1, LUPB_REF); in lupb_map_index()
510 upb_msgval val; in lupb_map_index()
543 upb_msgval key = lupb_tomsgval(L, lmap->key_type, 2, 1, LUPB_REF); in lupb_map_newindex()
548 upb_msgval val = lupb_tomsgval(L, lmap->value_type, 3, 1, LUPB_COPY); in lupb_map_newindex()
[all …]
/external/protobuf/php/ext/google/protobuf/
Dupb.h578 } upb_msgval; typedef
581 UPB_INLINE ctype upb_msgval_get ## name(upb_msgval v) { \
584 UPB_INLINE void upb_msgval_set ## name(upb_msgval *v, ctype cval) { \
587 UPB_INLINE upb_msgval upb_msgval_ ## name(ctype v) { \
588 upb_msgval ret; \
608 UPB_INLINE upb_msgval upb_msgval_makestr(const char *data, size_t size) { in ACCESSORS()
638 upb_msgval upb_msg_get(const upb_msg *msg,
656 upb_msgval val,
683 upb_msgval upb_array_get(const upb_array *arr, size_t i);
688 bool upb_array_set(upb_array *arr, size_t i, upb_msgval val);
[all …]
Dupb.c3861 static upb_msgval upb_msgval_read(const void *p, size_t ofs, in upb_msgval_read()
3863 upb_msgval val; in upb_msgval_read()
3869 static void upb_msgval_write(void *p, size_t ofs, upb_msgval val, in upb_msgval_write()
3909 static upb_value upb_toval(upb_msgval val) { in upb_toval()
3916 static upb_msgval upb_msgval_fromval(upb_value val) { in upb_msgval_fromval()
3917 upb_msgval ret; in upb_msgval_fromval()
3919 memset(&ret, 0, sizeof(upb_msgval)); /* XXX */ in upb_msgval_fromval()
4076 upb_msgval upb_msg_get(const upb_msg *msg, int field_index, in upb_msg_get()
4083 void upb_msg_set(upb_msg *msg, int field_index, upb_msgval val, in upb_msg_set()
4121 upb_msgval upb_array_get(const upb_array *arr, size_t i) { in upb_array_get()
[all …]
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h6691 } upb_msgval;
6694 UPB_INLINE ctype upb_msgval_get ## name(upb_msgval v) { \
6697 UPB_INLINE void upb_msgval_set ## name(upb_msgval *v, ctype cval) { \
6700 UPB_INLINE upb_msgval upb_msgval_ ## name(ctype v) { \
6701 upb_msgval ret; \
6721 UPB_INLINE upb_msgval upb_msgval_makestr(const char *data, size_t size) {
6752 upb_msgval upb_msg_get(const upb_msg *msg,
6770 upb_msgval val,
6798 upb_msgval upb_array_get(const upb_array *arr, size_t i);
6803 bool upb_array_set(upb_array *arr, size_t i, upb_msgval val);
[all …]
Dupb.c4727 static upb_msgval upb_msgval_read(const void *p, size_t ofs, in upb_msgval_read()
4729 upb_msgval val; in upb_msgval_read()
4735 static void upb_msgval_write(void *p, size_t ofs, upb_msgval val, in upb_msgval_write()
4775 static upb_value upb_toval(upb_msgval val) { in upb_toval()
4782 static upb_msgval upb_msgval_fromval(upb_value val) { in upb_msgval_fromval()
4783 upb_msgval ret; in upb_msgval_fromval()
4785 memset(&ret, 0, sizeof(upb_msgval)); /* XXX */ in upb_msgval_fromval()
4942 upb_msgval upb_msg_get(const upb_msg *msg, int field_index, in upb_msg_get()
4949 void upb_msg_set(upb_msg *msg, int field_index, upb_msgval val, in upb_msg_set()
4987 upb_msgval upb_array_get(const upb_array *arr, size_t i) { in upb_array_get()
[all …]