Home
last modified time | relevance | path

Searched refs:upb_msg (Results 1 – 20 of 20) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Dreflection.h20 const upb_msg* msg_val;
27 upb_msg* msg;
34 upb_msg *upb_msg_new(const upb_msgdef *m, upb_arena *a);
37 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);
60 void upb_msg_clear(upb_msg *msg, const upb_msgdef *m);
[all …]
Dmsg.h27 typedef void upb_msg; typedef
55 upb_msg *msg, intptr_t table,
101 UPB_INLINE upb_msg *_upb_msg_new_inl(const upb_msglayout *l, upb_arena *a) { in _upb_msg_new_inl()
104 upb_msg *msg; in _upb_msg_new_inl()
106 msg = UPB_PTR_AT(mem, sizeof(upb_msg_internal), upb_msg); in _upb_msg_new_inl()
112 upb_msg *_upb_msg_new(const upb_msglayout *l, upb_arena *a);
114 UPB_INLINE upb_msg_internal *upb_msg_getinternal(upb_msg *msg) { in upb_msg_getinternal()
120 void _upb_msg_clear(upb_msg *msg, const upb_msglayout *l);
123 void _upb_msg_discardunknown_shallow(upb_msg *msg);
127 bool _upb_msg_addunknown(upb_msg *msg, const char *data, size_t len,
[all …]
Dreflection.c68 upb_msg *upb_msg_new(const upb_msgdef *m, upb_arena *a) { in upb_msg_new()
76 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()
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()
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()
215 void upb_msg_clear(upb_msg *msg, const upb_msgdef *m) { in upb_msg_clear()
219 bool upb_msg_next(const upb_msg *msg, const upb_msgdef *m, in upb_msg_next()
[all …]
Djson_encode.c30 static void jsonenc_msg(jsonenc *e, const upb_msg *msg, const upb_msgdef *m);
32 static void jsonenc_msgfield(jsonenc *e, const upb_msg *msg,
34 static void jsonenc_msgfields(jsonenc *e, const upb_msg *msg,
36 static void jsonenc_value(jsonenc *e, const upb_msg *msg, const upb_msgdef *m);
108 static void jsonenc_timestamp(jsonenc *e, const upb_msg *msg, in jsonenc_timestamp()
150 static void jsonenc_duration(jsonenc *e, const upb_msg *msg, const upb_msgdef *m) { in jsonenc_duration()
284 static void jsonenc_wrapper(jsonenc *e, const upb_msg *msg, in jsonenc_wrapper()
327 static void jsonenc_any(jsonenc *e, const upb_msg *msg, const upb_msgdef *m) { in jsonenc_any()
335 upb_msg *any = upb_msg_new(any_m, arena); in jsonenc_any()
386 static void jsonenc_fieldmask(jsonenc *e, const upb_msg *msg, in jsonenc_fieldmask()
[all …]
Ddecode.c148 static const char *decode_msg(upb_decstate *d, const char *ptr, upb_msg *msg,
279 static upb_msg *decode_newsubmsg(upb_decstate *d, const upb_msglayout *layout, in decode_newsubmsg()
311 upb_msg *submsg, const upb_msglayout *layout, in decode_tosubmsg()
327 upb_msg *submsg, const upb_msglayout *subl, in decode_group()
342 upb_msg *submsg, const upb_msglayout *layout, in decode_togroup()
349 upb_msg *msg, const upb_msglayout *layout, in decode_toarray()
385 upb_msg *submsg = decode_newsubmsg(d, layout, field); in decode_toarray()
386 *UPB_PTR_AT(_upb_array_ptr(arr), arr->len * sizeof(void *), upb_msg *) = in decode_toarray()
437 static const char *decode_tomap(upb_decstate *d, const char *ptr, upb_msg *msg, in decode_tomap()
472 static const char *decode_tomsg(upb_decstate *d, const char *ptr, upb_msg *msg, in decode_tomsg()
[all …]
Djson_decode.c36 static void jsondec_wellknown(jsondec *d, upb_msg *msg, const upb_msgdef *m);
38 static void jsondec_wellknownvalue(jsondec *d, upb_msg *msg,
40 static void jsondec_object(jsondec *d, upb_msg *msg, const upb_msgdef *m);
851 static void jsondec_array(jsondec *d, upb_msg *msg, const upb_fielddef *f) { in jsondec_array()
862 static void jsondec_map(jsondec *d, upb_msg *msg, const upb_fielddef *f) { in jsondec_map()
879 static void jsondec_tomsg(jsondec *d, upb_msg *msg, const upb_msgdef *m) { in jsondec_tomsg()
889 upb_msg *msg = upb_msg_new(m, d->arena); in jsondec_msg()
897 static void jsondec_field(jsondec *d, upb_msg *msg, const upb_msgdef *m) { in jsondec_field()
934 upb_msg *submsg = upb_msg_mutable(msg, f, d->arena).msg; in jsondec_field()
945 static void jsondec_object(jsondec *d, upb_msg *msg, const upb_msgdef *m) { in jsondec_object()
[all …]
Dmsg.c12 static const upb_msg_internal *upb_msg_getinternal_const(const upb_msg *msg) { in upb_msg_getinternal_const()
17 upb_msg *_upb_msg_new(const upb_msglayout *l, upb_arena *a) { in _upb_msg_new()
21 void _upb_msg_clear(upb_msg *msg, const upb_msglayout *l) { in _upb_msg_clear()
26 bool _upb_msg_addunknown(upb_msg *msg, const char *data, size_t len, in _upb_msg_addunknown()
51 void _upb_msg_discardunknown_shallow(upb_msg *msg) { in _upb_msg_discardunknown_shallow()
58 const char *upb_msg_getunknown(const upb_msg *msg, size_t *len) { in upb_msg_getunknown()
Ddecode_fast.c23 upb_decstate *d, const char *ptr, upb_msg *msg, intptr_t table, \
41 upb_msg *msg, intptr_t table, in fastdecode_isdonefallback()
53 upb_msg *msg, intptr_t table, in fastdecode_dispatch()
247 static void *fastdecode_fieldmem(upb_msg *msg, uint64_t data) { in fastdecode_fieldmem()
253 static void *fastdecode_getfield(upb_decstate *d, const char *ptr, upb_msg *msg, in fastdecode_getfield()
648 const char *ptr, upb_msg *msg,
654 upb_msg *msg, intptr_t table, in fastdecode_verifyutf8()
664 const char *ptr, upb_msg *msg, in fastdecode_longstring()
701 const char *ptr, upb_msg *msg, in fastdecode_longstring_utf8()
709 const char *ptr, upb_msg *msg, in fastdecode_longstring_noutf8()
[all …]
Ddecode.h25 bool _upb_decode(const char *buf, size_t size, upb_msg *msg,
29 bool upb_decode(const char *buf, size_t size, upb_msg *msg, in upb_decode()
Ddecode_fast.h45 upb_msg *msg, intptr_t table, uint64_t hasbits,
49 struct upb_decstate *d, const char *ptr, upb_msg *msg, intptr_t table, \
Ddecode.int.h22 upb_msg *unknown_msg; /* If non-NULL, add unknown data at buffer flip. */
120 upb_msg *msg, intptr_t table, in fastdecode_tagdispatch()
Dtext_encode.h30 size_t upb_text_encode(const upb_msg *msg, const upb_msgdef *m,
Djson_encode.h28 size_t upb_json_encode(const upb_msg *msg, const upb_msgdef *m,
Djson_decode.h15 bool upb_json_decode(const char *buf, size_t size, upb_msg *msg,
Dtext_encode.c23 static void txtenc_msg(txtenc *e, const upb_msg *msg, const upb_msgdef *m);
364 static void txtenc_msg(txtenc *e, const upb_msg *msg, in txtenc_msg()
404 size_t upb_text_encode(const upb_msg *msg, const upb_msgdef *m, in upb_text_encode()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/
Dconformance_upb.c60 bool parse_proto(upb_msg *msg, const upb_msgdef *m, const ctx* c) { in parse_proto()
73 void serialize_proto(const upb_msg *msg, const upb_msgdef *m, const ctx *c) { in serialize_proto()
86 void serialize_text(const upb_msg *msg, const upb_msgdef *m, const ctx *c) { in serialize_text()
104 bool parse_json(upb_msg *msg, const upb_msgdef *m, const ctx* c) { in parse_json()
131 void serialize_json(const upb_msg *msg, const upb_msgdef *m, const ctx *c) { in serialize_json()
159 bool parse_input(upb_msg *msg, const upb_msgdef *m, const ctx* c) { in parse_input()
177 void write_output(const upb_msg *msg, const upb_msgdef *m, const ctx* c) { in write_output()
201 upb_msg *msg; in DoTest()
229 void debug_print(const char *label, const upb_msg *msg, const upb_msgdef *m, in debug_print()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/bindings/lua/
Dmsg.c95 static upb_msg *lupb_msg_check(lua_State *L, int narg);
608 upb_msg *msg;
613 static upb_msg *lupb_msg_check(lua_State *L, int narg) { in lupb_msg_check()
641 upb_msg *lupb_msg_pushnew(lua_State *L, int narg) { in lupb_msg_pushnew()
663 lmsg->msg = (upb_msg*)val.msg_val; /* XXX: cast isn't great. */ in lupb_msg_newmsgwrapper()
777 upb_msg *msg = lupb_msg_check(L, 1); in lupb_msg_index()
805 upb_msg *msg = lupb_msg_check(L, 1); in lupb_msg_newindex()
832 upb_msg *msg = lupb_msg_check(L, 3); in lupb_msg_newindex()
860 upb_msg *msg = lupb_msg_check(L, 1); in lupb_msg_tostring()
916 upb_msg *msg = lupb_msg_pushnew(L, 1); in lupb_decode()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/
DDESIGN.md31 into our internal representation for messages, `upb_msg`.
33 The core then contains functions to parse/serialize a message, given a `upb_msg*`
70 encoders/decoders from `upb_msg`, but we need to simplify all of that a LOT.
/external/cronet/third_party/protobuf/
DCHANGES.txt686 * Rewrote the data storage layer to be based on upb_msg objects from the
/external/protobuf/
DCHANGES.txt871 * Rewrote the data storage layer to be based on upb_msg objects from the