Home
last modified time | relevance | path

Searched refs:grpc_mdelem (Results 1 – 25 of 110) sorted by relevance

12345

/external/grpc-grpc/src/core/lib/transport/
Dmetadata.h63 typedef struct grpc_mdelem grpc_mdelem; typedef
91 struct grpc_mdelem { struct
102 (grpc_mdelem{((uintptr_t)(data)) | ((uintptr_t)storage)}) argument
105 ((grpc_mdelem){((uintptr_t)(data)) | ((uintptr_t)storage)})
112 grpc_mdelem grpc_mdelem_from_slices(grpc_slice key, grpc_slice value);
116 grpc_mdelem grpc_mdelem_from_grpc_metadata(grpc_metadata* metadata);
122 grpc_mdelem grpc_mdelem_create(
126 bool grpc_mdelem_eq(grpc_mdelem a, grpc_mdelem b);
130 void* grpc_mdelem_get_user_data(grpc_mdelem md, void (*if_destroy_func)(void*));
131 void* grpc_mdelem_set_user_data(grpc_mdelem md, void (*destroy_func)(void*),
[all …]
Dmetadata_batch.h34 grpc_mdelem md;
72 grpc_mdelem new_value);
103 grpc_mdelem elem_to_add) GRPC_MUST_USE_RESULT;
113 grpc_mdelem elem_to_add) GRPC_MUST_USE_RESULT;
115 grpc_error* grpc_attach_md_to_error(grpc_error* src, grpc_mdelem md);
119 grpc_mdelem md;
130 void* user_data, grpc_mdelem elem);
Dmetadata.cc145 static int is_mdelem_static(grpc_mdelem e) { in is_mdelem_static()
239 grpc_mdelem grpc_mdelem_create( in grpc_mdelem_create()
269 grpc_mdelem static_elem = grpc_static_mdelem_for_static_strings( in grpc_mdelem_create()
327 grpc_mdelem grpc_mdelem_from_slices(grpc_slice key, grpc_slice value) { in grpc_mdelem_from_slices()
328 grpc_mdelem out = grpc_mdelem_create(key, value, nullptr); in grpc_mdelem_from_slices()
334 grpc_mdelem grpc_mdelem_from_grpc_metadata(grpc_metadata* metadata) { in grpc_mdelem_from_grpc_metadata()
345 grpc_mdelem grpc_mdelem_ref(grpc_mdelem gmd DEBUG_ARGS) { in grpc_mdelem_ref()
399 void grpc_mdelem_unref(grpc_mdelem gmd DEBUG_ARGS) { in grpc_mdelem_unref()
458 void* grpc_mdelem_get_user_data(grpc_mdelem md, void (*destroy_func)(void*)) { in grpc_mdelem_get_user_data()
481 void* grpc_mdelem_set_user_data(grpc_mdelem md, void (*destroy_func)(void*), in grpc_mdelem_set_user_data()
[all …]
Dmetadata_batch.cc88 grpc_error* grpc_attach_md_to_error(grpc_error* src, grpc_mdelem md) { in grpc_attach_md_to_error()
131 grpc_mdelem elem_to_add) { in grpc_metadata_batch_add_head()
167 grpc_mdelem elem_to_add) { in grpc_metadata_batch_add_tail()
230 grpc_mdelem old_mdelem = storage->md; in grpc_metadata_batch_set_value()
231 grpc_mdelem new_mdelem = grpc_mdelem_from_slices( in grpc_metadata_batch_set_value()
239 grpc_mdelem new_mdelem) { in grpc_metadata_batch_substitute()
242 grpc_mdelem old_mdelem = storage->md; in grpc_metadata_batch_substitute()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/
Dmetadata.h65 typedef struct grpc_mdelem grpc_mdelem; typedef
98 struct grpc_mdelem { struct
109 (grpc_mdelem{((uintptr_t)(data)) | ((uintptr_t)(storage))}) argument
112 ((grpc_mdelem){((uintptr_t)(data)) | ((uintptr_t)(storage))})
122 grpc_mdelem grpc_mdelem_from_slices(const grpc_slice& key,
127 grpc_mdelem grpc_mdelem_from_slices(const grpc_core::StaticMetadataSlice& key,
131 grpc_mdelem grpc_mdelem_from_slices(
136 grpc_mdelem grpc_mdelem_from_slices(const grpc_core::StaticMetadataSlice& key,
140 grpc_mdelem grpc_mdelem_from_slices(const grpc_core::ManagedMemorySlice& key,
145 grpc_mdelem grpc_mdelem_from_grpc_metadata(grpc_metadata* metadata);
[all …]
Dmetadata_batch.h36 grpc_mdelem md;
76 grpc_mdelem new_mdelem);
113 grpc_mdelem elem_to_add) GRPC_MUST_USE_RESULT;
125 grpc_mdelem elem_to_add, grpc_metadata_batch_callouts_index idx) { in grpc_metadata_batch_add_head()
139 grpc_mdelem elem_to_add) GRPC_MUST_USE_RESULT;
149 grpc_mdelem elem_to_add, grpc_metadata_batch_callouts_index idx) { in grpc_metadata_batch_add_tail()
155 grpc_error* grpc_attach_md_to_error(grpc_error* src, grpc_mdelem md);
159 grpc_mdelem md;
169 void* user_data, grpc_mdelem elem);
Dmetadata.cc280 static int is_mdelem_static(grpc_mdelem e) { in is_mdelem_static()
355 static grpc_mdelem md_create_maybe_static(const grpc_slice& key,
358 static grpc_mdelem md_create_must_intern(const grpc_slice& key,
363 static grpc_mdelem md_create( in md_create()
400 static grpc_mdelem md_create_maybe_static(const grpc_slice& key, in md_create_maybe_static()
421 grpc_mdelem static_elem = grpc_static_mdelem_for_static_strings( in md_create_maybe_static()
437 static grpc_mdelem md_create_must_intern(const grpc_slice& key, in md_create_must_intern()
484 grpc_mdelem grpc_mdelem_create( in grpc_mdelem_create()
490 grpc_mdelem grpc_mdelem_create( in grpc_mdelem_create()
500 static grpc_mdelem md_from_slices(const grpc_slice& key, in md_from_slices()
[all …]
Dstatus_metadata.h29 grpc_status_code grpc_get_status_code_from_metadata(grpc_mdelem md);
35 grpc_mdelem grpc_get_reffed_status_elem_slowpath(int status_code);
36 inline grpc_mdelem grpc_get_reffed_status_elem(int status_code) { in grpc_get_reffed_status_elem()
Dmetadata_batch.cc94 grpc_error* grpc_attach_md_to_error(grpc_error* src, grpc_mdelem md) { in grpc_attach_md_to_error()
102 static grpc_error* GPR_ATTRIBUTE_NOINLINE error_with_md(grpc_mdelem md) { in error_with_md()
147 grpc_mdelem elem_to_add) { in grpc_metadata_batch_add_head()
202 grpc_mdelem elem_to_add) { in grpc_metadata_batch_add_tail()
292 grpc_mdelem old_mdelem = storage->md; in grpc_metadata_batch_set_value()
293 grpc_mdelem new_mdelem = grpc_mdelem_from_slices( in grpc_metadata_batch_set_value()
301 grpc_mdelem new_mdelem) { in grpc_metadata_batch_substitute()
304 grpc_mdelem old_mdelem = storage->md; in grpc_metadata_batch_substitute()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.h63 ents = static_cast<grpc_mdelem*>(gpr_malloc(AllocSize)); in grpc_chttp2_hptbl()
86 grpc_mdelem* ents = nullptr;
96 grpc_mdelem grpc_chttp2_hptbl_lookup_dynamic_index(const grpc_chttp2_hptbl* tbl,
98 grpc_mdelem grpc_chttp2_hptbl_lookup_ref_dynamic_index(
101 inline grpc_mdelem grpc_chttp2_hptbl_lookup(const grpc_chttp2_hptbl* tbl, in grpc_chttp2_hptbl_lookup()
121 grpc_mdelem md) GRPC_MUST_USE_RESULT;
123 size_t grpc_chttp2_get_size_in_hpack_table(grpc_mdelem elem,
129 inline uintptr_t grpc_chttp2_get_static_hpack_table_index(grpc_mdelem md) { in grpc_chttp2_get_static_hpack_table_index()
146 const grpc_chttp2_hptbl* tbl, grpc_mdelem md);
Dhpack_table.cc49 static grpc_mdelem lookup_dynamic_index(const grpc_chttp2_hptbl* tbl, in lookup_dynamic_index()
56 grpc_mdelem md = tbl->ents[offset]; in lookup_dynamic_index()
66 grpc_mdelem grpc_chttp2_hptbl_lookup_dynamic_index(const grpc_chttp2_hptbl* tbl, in grpc_chttp2_hptbl_lookup_dynamic_index()
71 grpc_mdelem grpc_chttp2_hptbl_lookup_ref_dynamic_index( in grpc_chttp2_hptbl_lookup_ref_dynamic_index()
78 grpc_mdelem first_ent = tbl->ents[tbl->first_ent]; in evict1()
90 grpc_mdelem* ents = in rebuild_ents()
91 static_cast<grpc_mdelem*>(gpr_malloc(sizeof(*ents) * new_cap)); in rebuild_ents()
148 grpc_error* grpc_chttp2_hptbl_add(grpc_chttp2_hptbl* tbl, grpc_mdelem md) { in grpc_chttp2_hptbl_add()
197 const grpc_chttp2_hptbl* tbl, grpc_mdelem md) { in grpc_chttp2_hptbl_find()
203 grpc_mdelem ent = grpc_static_mdelem_manifested()[i]; in grpc_chttp2_hptbl_find()
[all …]
Dhpack_encoder.cc106 typedef grpc_mdelem Type;
107 static const grpc_mdelem Null() { return {0}; } in Null()
108 static bool IsNull(const grpc_mdelem md) { return md.payload == 0; } in IsNull()
109 static bool Equals(const grpc_mdelem md1, const grpc_mdelem md2) { in Equals()
112 static void Ref(grpc_mdelem md) { in Ref()
116 static void Unref(grpc_mdelem md) { in Unref()
442 static void AddElemWithIndex(grpc_chttp2_hpack_compressor* c, grpc_mdelem elem, in AddElemWithIndex()
451 static void add_elem(grpc_chttp2_hpack_compressor* c, grpc_mdelem elem, in add_elem()
459 static void add_key(grpc_chttp2_hpack_compressor* c, grpc_mdelem elem, in add_key()
492 static wire_value get_wire_value(grpc_mdelem elem, bool true_binary_enabled) { in get_wire_value()
[all …]
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.h68 grpc_mdelem* ents;
69 grpc_mdelem static_ents[GRPC_CHTTP2_LAST_STATIC_ENTRY];
81 grpc_mdelem grpc_chttp2_hptbl_lookup(const grpc_chttp2_hptbl* tbl,
85 grpc_mdelem md) GRPC_MUST_USE_RESULT;
87 size_t grpc_chttp2_get_size_in_hpack_table(grpc_mdelem elem,
93 uint8_t grpc_chttp2_get_static_hpack_table_index(grpc_mdelem md);
102 const grpc_chttp2_hptbl* tbl, grpc_mdelem md);
Dhpack_table.cc180 tbl->ents = static_cast<grpc_mdelem*>( in grpc_chttp2_hptbl_init()
202 grpc_mdelem grpc_chttp2_hptbl_lookup(const grpc_chttp2_hptbl* tbl, in grpc_chttp2_hptbl_lookup()
221 grpc_mdelem first_ent = tbl->ents[tbl->first_ent]; in evict1()
233 grpc_mdelem* ents = in rebuild_ents()
234 static_cast<grpc_mdelem*>(gpr_malloc(sizeof(*ents) * new_cap)); in rebuild_ents()
293 grpc_error* grpc_chttp2_hptbl_add(grpc_chttp2_hptbl* tbl, grpc_mdelem md) { in grpc_chttp2_hptbl_add()
345 const grpc_chttp2_hptbl* tbl, grpc_mdelem md) { in grpc_chttp2_hptbl_find()
351 grpc_mdelem ent = tbl->static_ents[i]; in grpc_chttp2_hptbl_find()
362 grpc_mdelem ent = tbl->ents[(tbl->first_ent + i) % tbl->cap_entries]; in grpc_chttp2_hptbl_find()
377 size_t grpc_chttp2_get_size_in_hpack_table(grpc_mdelem elem, in grpc_chttp2_get_size_in_hpack_table()
[all …]
Dhpack_encoder.cc216 static void add_nothing(grpc_chttp2_hpack_compressor* c, grpc_mdelem elem, in add_nothing()
222 grpc_mdelem elem, uint32_t new_index) { in add_key_with_index()
262 grpc_mdelem elem, uint32_t new_index) { in add_elem_with_index()
304 static void add_elem(grpc_chttp2_hpack_compressor* c, grpc_mdelem elem, in add_elem()
310 static void add_key(grpc_chttp2_hpack_compressor* c, grpc_mdelem elem, in add_key()
330 static wire_value get_wire_value(grpc_mdelem elem, bool true_binary_enabled) { in get_wire_value()
366 uint32_t key_index, grpc_mdelem elem, in emit_lithdr_incidx()
383 uint32_t key_index, grpc_mdelem elem, in emit_lithdr_noidx()
400 uint32_t unused_index, grpc_mdelem elem, in emit_lithdr_incidx_v()
422 uint32_t unused_index, grpc_mdelem elem, in emit_lithdr_noidx_v()
[all …]
/external/grpc-grpc/test/core/transport/
Dmetadata_test.cc59 grpc_mdelem m1, m2, m3; in test_create_metadata()
115 grpc_mdelem* created = in test_create_many_persistant_metadata()
116 static_cast<grpc_mdelem*>(gpr_malloc(sizeof(grpc_mdelem) * MANY)); in test_create_many_persistant_metadata()
117 grpc_mdelem md; in test_create_many_persistant_metadata()
157 grpc_mdelem a, b, c; in test_spin_creating_the_same_thing()
184 grpc_mdelem a, b, c; in test_identity_laws()
272 grpc_mdelem md; in test_user_data_works()
294 grpc_mdelem elem = grpc_mdelem_from_slices( in verify_ascii_header_size()
306 grpc_mdelem elem = grpc_mdelem_from_slices( in verify_binary_header_size()
354 grpc_mdelem p = GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[i], in test_copied_static_metadata()
[all …]
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_chttp2_hpack.cc121 std::vector<grpc_mdelem> elems = Fixture::GetElems(); in BM_HpackEncoderEncodeHeader()
175 static std::vector<grpc_mdelem> GetElems() { return {}; } in GetElems()
181 static std::vector<grpc_mdelem> GetElems() { in GetElems()
189 static std::vector<grpc_mdelem> GetElems() { in GetElems()
200 static std::vector<grpc_mdelem> GetElems() { in GetElems()
202 std::vector<grpc_mdelem> out = {grpc_mdelem_from_slices( in GetElems()
223 static std::vector<grpc_mdelem> GetElems() { in GetElems()
233 static std::vector<grpc_mdelem> GetElems() { in GetElems()
243 static std::vector<grpc_mdelem> GetElems() { in GetElems()
262 static std::vector<grpc_mdelem> GetElems() { in GetElems()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/compression/
Dalgorithm_metadata.h38 grpc_mdelem grpc_compression_encoding_mdelem(
43 grpc_mdelem grpc_message_compression_encoding_mdelem(
48 grpc_mdelem grpc_stream_compression_encoding_mdelem(
/external/grpc-grpc/src/core/lib/compression/
Dalgorithm_metadata.h38 grpc_mdelem grpc_compression_encoding_mdelem(
43 grpc_mdelem grpc_message_compression_encoding_mdelem(
48 grpc_mdelem grpc_stream_compression_encoding_mdelem(
/external/grpc-grpc/src/core/lib/security/credentials/
Dcredentials_metadata.cc38 list->md = static_cast<grpc_mdelem*>( in mdelem_list_ensure_capacity()
39 gpr_realloc(list->md, sizeof(grpc_mdelem) * new_size)); in mdelem_list_ensure_capacity()
43 grpc_mdelem md) { in grpc_credentials_mdelem_array_add()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/
Dcredentials_metadata.cc38 list->md = static_cast<grpc_mdelem*>( in mdelem_list_ensure_capacity()
39 gpr_realloc(list->md, sizeof(grpc_mdelem) * new_size)); in mdelem_list_ensure_capacity()
43 grpc_mdelem md) { in grpc_credentials_mdelem_array_add()
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.h73 grpc_mdelem access_token_md;
91 grpc_mdelem access_token_md;
103 const struct grpc_http_response* response, grpc_mdelem* token_md,
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/workarounds/
Dworkaround_utils.h33 grpc_workaround_user_agent_md* grpc_parse_user_agent(grpc_mdelem md);
35 typedef bool (*user_agent_parser)(grpc_mdelem);
/external/grpc-grpc/src/core/ext/filters/workarounds/
Dworkaround_utils.h33 grpc_workaround_user_agent_md* grpc_parse_user_agent(grpc_mdelem md);
35 typedef bool (*user_agent_parser)(grpc_mdelem);
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Devaluate_args_test.cc94 grpc_mdelem fake_val_md = grpc_mdelem_from_slices(GRPC_MDSTR_PATH, fake_val); in TEST()
111 grpc_mdelem fake_val_md = grpc_mdelem_from_slices(GRPC_MDSTR_HOST, fake_val); in TEST()
129 grpc_mdelem fake_val_md = in TEST()
149 grpc_mdelem fake_path_md = in TEST()
157 grpc_mdelem fake_host_md = in TEST()

12345