/external/grpc-grpc/include/grpc/ |
D | slice.h | 33 GPRAPI grpc_slice grpc_slice_ref(grpc_slice s); 41 GPRAPI void grpc_slice_unref(grpc_slice s); 44 GPRAPI grpc_slice grpc_slice_copy(grpc_slice s); 49 GPRAPI grpc_slice grpc_slice_new(void* p, size_t len, void (*destroy)(void*)); 55 GPRAPI grpc_slice grpc_slice_new_with_user_data(void* p, size_t len, 61 GPRAPI grpc_slice grpc_slice_new_with_len(void* p, size_t len, 67 GPRAPI grpc_slice grpc_slice_malloc(size_t length); 68 GPRAPI grpc_slice grpc_slice_malloc_large(size_t length); 76 GPRAPI grpc_slice grpc_slice_intern(grpc_slice slice); 84 GPRAPI grpc_slice grpc_slice_from_copied_string(const char* source); [all …]
|
/external/grpc-grpc/src/core/lib/slice/ |
D | slice.cc | 31 char* grpc_slice_to_c_string(grpc_slice slice) { in grpc_slice_to_c_string() 38 grpc_slice grpc_empty_slice(void) { in grpc_empty_slice() 39 grpc_slice out; in grpc_empty_slice() 45 grpc_slice grpc_slice_copy(grpc_slice s) { in grpc_slice_copy() 46 grpc_slice out = GRPC_SLICE_MALLOC(GRPC_SLICE_LENGTH(s)); in grpc_slice_copy() 52 grpc_slice grpc_slice_ref_internal(grpc_slice slice) { in grpc_slice_ref_internal() 59 void grpc_slice_unref_internal(grpc_slice slice) { in grpc_slice_unref_internal() 66 grpc_slice grpc_slice_ref(grpc_slice slice) { in grpc_slice_ref() 71 void grpc_slice_unref(grpc_slice slice) { in grpc_slice_unref() 91 grpc_slice grpc_slice_from_static_buffer(const void* s, size_t len) { in grpc_slice_from_static_buffer() [all …]
|
D | slice_internal.h | 27 grpc_slice grpc_slice_ref_internal(grpc_slice slice); 28 void grpc_slice_unref_internal(grpc_slice slice); 35 bool grpc_slice_is_interned(grpc_slice slice); 44 grpc_slice grpc_slice_maybe_static_intern(grpc_slice slice, 46 uint32_t grpc_static_slice_hash(grpc_slice s); 47 int grpc_static_slice_eq(grpc_slice a, grpc_slice b);
|
D | slice_buffer.cc | 43 memmove(sb->base_slices, sb->slices, sb->count * sizeof(grpc_slice)); in maybe_embiggen() 50 sb->base_slices = static_cast<grpc_slice*>( in maybe_embiggen() 51 gpr_malloc(sb->capacity * sizeof(grpc_slice))); in maybe_embiggen() 52 memcpy(sb->base_slices, sb->inlined, slice_count * sizeof(grpc_slice)); in maybe_embiggen() 54 sb->base_slices = static_cast<grpc_slice*>( in maybe_embiggen() 55 gpr_realloc(sb->base_slices, sb->capacity * sizeof(grpc_slice))); in maybe_embiggen() 87 grpc_slice* back; in grpc_slice_buffer_tiny_add() 111 size_t grpc_slice_buffer_add_indexed(grpc_slice_buffer* sb, grpc_slice s) { in grpc_slice_buffer_add_indexed() 120 void grpc_slice_buffer_add(grpc_slice_buffer* sb, grpc_slice s) { in grpc_slice_buffer_add() 128 grpc_slice* back = &sb->slices[n - 1]; in grpc_slice_buffer_add() [all …]
|
D | percent_encoding.h | 49 grpc_slice grpc_percent_encode_slice(grpc_slice slice, 57 bool grpc_strict_percent_decode_slice(grpc_slice slice_in, 59 grpc_slice* slice_out); 63 grpc_slice grpc_permissive_percent_decode_slice(grpc_slice slice_in);
|
/external/grpc-grpc/src/core/tsi/alts/handshaker/ |
D | alts_handshaker_service_api_util.cc | 44 destroy_slice(static_cast<grpc_slice*>(identity->hostname.arg)); in destroy_repeated_field_list_identity() 45 destroy_slice(static_cast<grpc_slice*>(identity->service_account.arg)); in destroy_repeated_field_list_identity() 56 destroy_slice((grpc_slice*)field->data); in destroy_repeated_field_list_string() 62 grpc_slice* create_slice(const char* data, size_t size) { in create_slice() 63 grpc_slice slice = grpc_slice_from_copied_buffer(data, size); in create_slice() 64 grpc_slice* cb_slice = in create_slice() 65 static_cast<grpc_slice*>(gpr_zalloc(sizeof(*cb_slice))); in create_slice() 70 void destroy_slice(grpc_slice* slice) { in destroy_slice() 79 grpc_slice* slice = static_cast<grpc_slice*>(*arg); in encode_string_or_bytes_cb() 103 const grpc_slice* slice = static_cast<const grpc_slice*>(var->data); in encode_repeated_string_cb() [all …]
|
D | alts_handshaker_service_api.cc | 60 destroy_slice(static_cast<grpc_slice*>( in grpc_gcp_handshaker_req_destroy() 62 destroy_slice(static_cast<grpc_slice*>( in grpc_gcp_handshaker_req_destroy() 66 destroy_slice(static_cast<grpc_slice*>( in grpc_gcp_handshaker_req_destroy() 70 destroy_slice(static_cast<grpc_slice*>( in grpc_gcp_handshaker_req_destroy() 73 destroy_slice(static_cast<grpc_slice*>(req->client_start.target_name.arg)); in grpc_gcp_handshaker_req_destroy() 88 destroy_slice(static_cast<grpc_slice*>( in grpc_gcp_handshaker_req_destroy() 92 destroy_slice(static_cast<grpc_slice*>( in grpc_gcp_handshaker_req_destroy() 95 destroy_slice(static_cast<grpc_slice*>(req->server_start.in_bytes.arg)); in grpc_gcp_handshaker_req_destroy() 98 destroy_slice(static_cast<grpc_slice*>(req->next.in_bytes.arg)); in grpc_gcp_handshaker_req_destroy() 125 grpc_slice* slice = create_slice(target_name, strlen(target_name)); in grpc_gcp_handshaker_req_set_target_name() [all …]
|
/external/grpc-grpc/include/grpcpp/impl/codegen/ |
D | core_codegen_interface.h | 93 grpc_slice* slice) = 0; 95 virtual grpc_byte_buffer* grpc_raw_byte_buffer_create(grpc_slice* slice, 97 virtual grpc_slice grpc_slice_new_with_user_data(void* p, size_t len, 100 virtual grpc_slice grpc_slice_new_with_len(void* p, size_t len, 110 virtual grpc_slice grpc_empty_slice() = 0; 111 virtual grpc_slice grpc_slice_malloc(size_t length) = 0; 112 virtual void grpc_slice_unref(grpc_slice slice) = 0; 113 virtual grpc_slice grpc_slice_ref(grpc_slice slice) = 0; 114 virtual grpc_slice grpc_slice_split_tail(grpc_slice* s, size_t split) = 0; 115 virtual grpc_slice grpc_slice_split_head(grpc_slice* s, size_t split) = 0; [all …]
|
D | core_codegen.h | 83 grpc_slice* slice) override; 85 grpc_byte_buffer* grpc_raw_byte_buffer_create(grpc_slice* slice, 87 grpc_slice grpc_slice_new_with_user_data(void* p, size_t len, 90 grpc_slice grpc_slice_new_with_len(void* p, size_t len, 92 grpc_slice grpc_empty_slice() override; 93 grpc_slice grpc_slice_malloc(size_t length) override; 94 void grpc_slice_unref(grpc_slice slice) override; 95 grpc_slice grpc_slice_ref(grpc_slice slice) override; 96 grpc_slice grpc_slice_split_tail(grpc_slice* s, size_t split) override; 97 grpc_slice grpc_slice_split_head(grpc_slice* s, size_t split) override; [all …]
|
D | slice.h | 44 Slice(grpc_slice slice, AddRef) in Slice() 49 Slice(grpc_slice slice, StealRef) : slice_(slice) {} in Slice() 110 grpc_slice c_slice() const { in c_slice() 117 grpc_slice slice_; 120 inline grpc::string_ref StringRefFromSlice(const grpc_slice* slice) { in StringRefFromSlice() 126 inline grpc::string StringFromCopiedSlice(grpc_slice slice) { in StringFromCopiedSlice() 131 inline grpc_slice SliceReferencingString(const grpc::string& str) { in SliceReferencingString() 136 inline grpc_slice SliceFromCopiedString(const grpc::string& str) { in SliceFromCopiedString()
|
/external/grpc-grpc/test/cpp/microbenchmarks/ |
D | bm_chttp2_hpack.cc | 41 static grpc_slice MakeSlice(std::vector<uint8_t> bytes) { in MakeSlice() 42 grpc_slice s = grpc_slice_malloc(bytes.size()); in MakeSlice() 201 grpc_slice bytes = MakeBytes(); in GetElems() 210 static grpc_slice MakeBytes() { in MakeBytes() 249 static grpc_slice MakeBytes() { in MakeBytes() 456 std::vector<grpc_slice> init_slices = Fixture::GetInitSlices(); in BM_HpackParserParseHeader() 457 std::vector<grpc_slice> benchmark_slices = Fixture::GetBenchmarkSlices(); in BM_HpackParserParseHeader() 490 static std::vector<grpc_slice> GetInitSlices() { return {}; } in GetInitSlices() 491 static std::vector<grpc_slice> GetBenchmarkSlices() { in GetBenchmarkSlices() 498 static std::vector<grpc_slice> GetInitSlices() { in GetInitSlices() [all …]
|
/external/grpc-grpc/src/cpp/common/ |
D | core_codegen.cc | 127 grpc_slice* slice) { in grpc_byte_buffer_reader_next() 131 grpc_byte_buffer* CoreCodegen::grpc_raw_byte_buffer_create(grpc_slice* slice, in grpc_raw_byte_buffer_create() 136 grpc_slice CoreCodegen::grpc_slice_new_with_user_data(void* p, size_t len, in grpc_slice_new_with_user_data() 142 grpc_slice CoreCodegen::grpc_slice_new_with_len(void* p, size_t len, in grpc_slice_new_with_len() 148 grpc_slice CoreCodegen::grpc_empty_slice() { return ::grpc_empty_slice(); } in grpc_empty_slice() 150 grpc_slice CoreCodegen::grpc_slice_malloc(size_t length) { in grpc_slice_malloc() 154 void CoreCodegen::grpc_slice_unref(grpc_slice slice) { in grpc_slice_unref() 158 grpc_slice CoreCodegen::grpc_slice_ref(grpc_slice slice) { in grpc_slice_ref() 162 grpc_slice CoreCodegen::grpc_slice_split_tail(grpc_slice* s, size_t split) { in grpc_slice_split_tail() 166 grpc_slice CoreCodegen::grpc_slice_split_head(grpc_slice* s, size_t split) { in grpc_slice_split_head() [all …]
|
/external/grpc-grpc/test/core/transport/chttp2/ |
D | bin_decoder_test.cc | 34 static void expect_slice_eq(grpc_slice expected, grpc_slice slice, in expect_slice_eq() 49 static grpc_slice base64_encode(const char* s) { in base64_encode() 50 grpc_slice ss = grpc_slice_from_copied_string(s); in base64_encode() 51 grpc_slice out = grpc_chttp2_base64_encode(ss); in base64_encode() 56 static grpc_slice base64_decode(const char* s) { in base64_decode() 57 grpc_slice ss = grpc_slice_from_copied_string(s); in base64_decode() 58 grpc_slice out = grpc_chttp2_base64_decode(ss); in base64_decode() 63 static grpc_slice base64_decode_with_length(const char* s, in base64_decode_with_length() 65 grpc_slice ss = grpc_slice_from_copied_string(s); in base64_decode_with_length() 66 grpc_slice out = grpc_chttp2_base64_decode_with_length(ss, output_length); in base64_decode_with_length() [all …]
|
D | bin_encoder_test.cc | 34 static void expect_slice_eq(grpc_slice expected, grpc_slice slice, in expect_slice_eq() 49 static grpc_slice B64(const char* s) { in B64() 50 grpc_slice ss = grpc_slice_from_copied_string(s); in B64() 51 grpc_slice out = grpc_chttp2_base64_encode(ss); in B64() 56 static grpc_slice HUFF(const char* s) { in HUFF() 57 grpc_slice ss = grpc_slice_from_copied_string(s); in HUFF() 58 grpc_slice out = grpc_chttp2_huffman_compress(ss); in HUFF() 69 grpc_slice input = grpc_slice_from_copied_buffer(s, len); in expect_combined_equiv() 70 grpc_slice base64 = grpc_chttp2_base64_encode(input); in expect_combined_equiv() 71 grpc_slice expect = grpc_chttp2_huffman_compress(base64); in expect_combined_equiv() [all …]
|
/external/grpc-grpc/test/core/util/ |
D | slice_splitter.cc | 39 void grpc_split_slices(grpc_slice_split_mode mode, grpc_slice* src_slices, in grpc_split_slices() 40 size_t src_slice_count, grpc_slice** dst_slices, in grpc_split_slices() 48 *dst_slices = static_cast<grpc_slice*>( in grpc_split_slices() 49 gpr_malloc(sizeof(grpc_slice) * src_slice_count)); in grpc_split_slices() 61 *dst_slices = static_cast<grpc_slice*>(gpr_malloc(sizeof(grpc_slice))); in grpc_split_slices() 78 static_cast<grpc_slice*>(gpr_malloc(sizeof(grpc_slice) * length)); in grpc_split_slices() 91 grpc_slice* src_slices, size_t src_slice_count, in grpc_split_slices_to_buffer() 93 grpc_slice* slices; in grpc_split_slices_to_buffer() 109 grpc_slice grpc_slice_merge(grpc_slice* slices, size_t nslices) { in grpc_slice_merge()
|
/external/grpc-grpc/test/core/slice/ |
D | slice_test.cc | 41 grpc_slice slice; in test_slice_malloc_returns_something_sensible() 75 grpc_slice slice = grpc_slice_new(&x, 1, do_nothing); in test_slice_new_returns_something_sensible() 88 grpc_slice slice; in test_slice_new_with_user_data() 115 grpc_slice slice = grpc_slice_new_with_len(&x, 1, do_nothing_with_len_1); in test_slice_new_with_len_returns_something_sensible() 138 grpc_slice slice; in test_slice_sub_works() 139 grpc_slice sub; in test_slice_sub_works() 167 static void check_head_tail(grpc_slice slice, grpc_slice head, in check_head_tail() 168 grpc_slice tail) { in check_head_tail() 178 grpc_slice slice; in test_slice_split_head_works() 179 grpc_slice head, tail; in test_slice_split_head_works() [all …]
|
D | percent_encoding_test.cc | 46 grpc_slice raw_slice = grpc_slice_from_copied_buffer(raw, raw_length); in test_vector() 47 grpc_slice encoded_slice = in test_vector() 49 grpc_slice raw2encoded_slice = grpc_percent_encode_slice(raw_slice, dict); in test_vector() 50 grpc_slice encoded2raw_slice; in test_vector() 53 grpc_slice encoded2raw_permissive_slice = in test_vector() 96 grpc_slice permissive_unencoded_slice = grpc_slice_from_copied_buffer( in test_nonconformant_vector() 98 grpc_slice encoded_slice = in test_nonconformant_vector() 100 grpc_slice encoded2raw_slice; in test_nonconformant_vector() 103 grpc_slice encoded2raw_permissive_slice = in test_nonconformant_vector()
|
/external/grpc-grpc/src/ruby/ext/grpc/ |
D | rb_grpc_imports.generated.h | 50 typedef int(*grpc_compression_algorithm_parse_type)(grpc_slice value, grpc_compression_algorithm* a… 146 …propagation_mask, grpc_completion_queue* completion_queue, grpc_slice method, const grpc_slice* ho… 236 typedef int(*grpc_header_key_is_legal_type)(grpc_slice slice); 239 typedef int(*grpc_header_nonbin_value_is_legal_type)(grpc_slice slice); 242 typedef int(*grpc_is_binary_header_type)(grpc_slice slice); 434 typedef grpc_byte_buffer*(*grpc_raw_byte_buffer_create_type)(grpc_slice* slices, size_t nslices); 437 typedef grpc_byte_buffer*(*grpc_raw_compressed_byte_buffer_create_type)(grpc_slice* slices, size_t … 455 typedef int(*grpc_byte_buffer_reader_next_type)(grpc_byte_buffer_reader* reader, grpc_slice* slice); 458 typedef grpc_slice(*grpc_byte_buffer_reader_readall_type)(grpc_byte_buffer_reader* reader); 485 typedef grpc_slice(*grpc_slice_ref_type)(grpc_slice s); [all …]
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | bin_encoder.h | 28 grpc_slice grpc_chttp2_base64_encode(grpc_slice input); 32 grpc_slice grpc_chttp2_huffman_compress(grpc_slice input); 39 grpc_slice grpc_chttp2_base64_encode_and_huffman_compress(grpc_slice input);
|
D | bin_decoder.h | 45 grpc_slice grpc_chttp2_base64_decode(grpc_slice input); 50 grpc_slice grpc_chttp2_base64_decode_with_length(grpc_slice input, 54 size_t grpc_chttp2_base64_infer_length_after_decode(const grpc_slice& slice);
|
/external/grpc-grpc/test/core/tsi/alts/handshaker/ |
D | alts_handshaker_service_api_test_lib.cc | 78 grpc_slice* slice = in grpc_gcp_handshaker_resp_set_application_protocol() 94 grpc_slice* slice = create_slice(record_protocol, strlen(record_protocol)); in grpc_gcp_handshaker_resp_set_record_protocol() 108 grpc_slice* slice = create_slice(key_data, size); in grpc_gcp_handshaker_resp_set_key_data() 116 grpc_slice* slice = create_slice(hostname, strlen(hostname)); in set_identity_hostname() 123 grpc_slice* slice = create_slice(service_account, strlen(service_account)); in set_identity_service_account() 220 grpc_slice* slice = create_slice(details, strlen(details)); in grpc_gcp_handshaker_resp_set_details() 235 grpc_slice* slice = create_slice(out_frames, size); in grpc_gcp_handshaker_resp_set_out_frames() 280 grpc_slice* slice) { in grpc_gcp_handshaker_resp_encode() 303 bool grpc_gcp_handshaker_req_decode(grpc_slice slice, in grpc_gcp_handshaker_req_decode() 321 static bool slice_equals(grpc_slice* l_slice, grpc_slice* r_slice) { in slice_equals() [all …]
|
D | alts_handshaker_client_test.cc | 46 grpc_slice out_frame; 86 grpc_slice* service_account1 = in validate_target_identities() 87 static_cast<grpc_slice*>(target_identity1->service_account.arg); in validate_target_identities() 88 grpc_slice* service_account2 = in validate_target_identities() 89 static_cast<grpc_slice*>(target_identity2->service_account.arg); in validate_target_identities() 142 grpc_slice slice = grpc_byte_buffer_reader_readall(&bbr); in deserialize_handshaker_req() 177 grpc_slice* application_protocol = (grpc_slice*)data; in check_client_start_success() 180 grpc_slice* record_protocol = (grpc_slice*)data; in check_client_start_success() 190 grpc_slice* target_name = in check_client_start_success() 191 static_cast<grpc_slice*>(req->client_start.target_name.arg); in check_client_start_success() [all …]
|
/external/grpc-grpc/include/grpc/impl/codegen/ |
D | slice.h | 28 typedef struct grpc_slice grpc_slice; typedef 46 int (*eq)(grpc_slice a, grpc_slice b); 47 uint32_t (*hash)(grpc_slice slice); 80 struct grpc_slice { struct 101 grpc_slice* base_slices; argument 104 grpc_slice* slices; 113 grpc_slice inlined[GRPC_SLICE_BUFFER_INLINE_ELEMENTS];
|
/external/grpc-grpc/test/core/surface/ |
D | byte_buffer_reader_test.cc | 38 grpc_slice slice; in test_read_one_slice() 41 grpc_slice first_slice, second_slice; in test_read_one_slice() 60 grpc_slice slice; in test_read_one_slice_malloc() 63 grpc_slice first_slice, second_slice; in test_read_one_slice_malloc() 83 grpc_slice slice; in test_read_none_compressed_slice() 86 grpc_slice first_slice, second_slice; in test_read_none_compressed_slice() 105 grpc_slice slice; in test_read_corrupted_slice() 120 grpc_slice input_slice; in read_compressed_slice() 125 grpc_slice read_slice; in read_compressed_slice() 174 grpc_slice slice; in test_byte_buffer_from_reader() [all …]
|
/external/flatbuffers/include/flatbuffers/ |
D | grpc.h | 37 Message(grpc_slice slice, bool add_ref) in Message() 73 const grpc_slice &BorrowSlice() const { return slice_; } in BorrowSlice() 76 grpc_slice slice_; 130 grpc_slice old_slice = slice_; in reallocate_downward() 131 grpc_slice new_slice = grpc_slice_malloc(new_size); in reallocate_downward() 141 grpc_slice &get_slice(uint8_t *p, size_t size) { in get_slice() 147 grpc_slice slice_; 222 uint8_t *ReleaseRaw(size_t &size, size_t &offset, grpc_slice &slice) { in ReleaseRaw() 248 grpc_slice slice = slice_allocator_.get_slice(buf_data, buf_size); in GetMessage() 250 grpc_slice subslice = grpc_slice_sub(slice, begin, end); in GetMessage() [all …]
|