/external/grpc-grpc/test/core/slice/ |
D | slice_test.cc | 63 GRPC_SLICE_START_PTR(slice)[i] = static_cast<uint8_t>(i); in test_slice_malloc_returns_something_sensible() 95 GPR_ASSERT(GRPC_SLICE_START_PTR(slice)[0] == 0); in test_slice_new_with_user_data() 96 GPR_ASSERT(GRPC_SLICE_START_PTR(slice)[1] == 1); in test_slice_new_with_user_data() 149 GRPC_SLICE_START_PTR(slice)[i] = static_cast<uint8_t>(i); in test_slice_sub_works() 159 GPR_ASSERT(GRPC_SLICE_START_PTR(sub)[k] == (uint8_t)(i + k)); in test_slice_sub_works() 171 GPR_ASSERT(0 == memcmp(GRPC_SLICE_START_PTR(slice), in check_head_tail() 172 GRPC_SLICE_START_PTR(head), GRPC_SLICE_LENGTH(head))); in check_head_tail() 173 GPR_ASSERT(0 == memcmp(GRPC_SLICE_START_PTR(slice) + GRPC_SLICE_LENGTH(head), in check_head_tail() 174 GRPC_SLICE_START_PTR(tail), GRPC_SLICE_LENGTH(tail))); in check_head_tail() 189 GRPC_SLICE_START_PTR(slice)[i] = static_cast<uint8_t>(i); in test_slice_split_head_works() [all …]
|
/external/grpc-grpc/test/core/surface/ |
D | byte_buffer_reader_test.cc | 52 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(first_slice), "test", 4) == 0); in test_read_one_slice() 68 memcpy(GRPC_SLICE_START_PTR(slice), "test", 4); in test_read_one_slice_malloc() 75 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(first_slice), "test", 4) == 0); in test_read_one_slice_malloc() 97 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(first_slice), "test", 4) == 0); in test_read_none_compressed_slice() 132 memset(GRPC_SLICE_START_PTR(input_slice), 'a', input_size); in read_compressed_slice() 148 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(read_slice), in read_compressed_slice() 149 GRPC_SLICE_START_PTR(input_slice) + read_count, in read_compressed_slice() 180 memcpy(GRPC_SLICE_START_PTR(slice), "test", 4); in test_byte_buffer_from_reader() 190 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR( in test_byte_buffer_from_reader() 212 memcpy(GRPC_SLICE_START_PTR(slices[0]), lotsa_as, 512); in test_readall() [all …]
|
/external/grpc-grpc/src/core/lib/slice/ |
D | percent_encoding.cc | 47 const uint8_t* slice_start = GRPC_SLICE_START_PTR(slice); in grpc_percent_encode_slice() 62 uint8_t* q = GRPC_SLICE_START_PTR(out); in grpc_percent_encode_slice() 92 const uint8_t* p = GRPC_SLICE_START_PTR(slice_in); in grpc_strict_percent_decode_slice() 114 p = GRPC_SLICE_START_PTR(slice_in); in grpc_strict_percent_decode_slice() 116 uint8_t* q = GRPC_SLICE_START_PTR(*slice_out); in grpc_strict_percent_decode_slice() 130 const uint8_t* p = GRPC_SLICE_START_PTR(slice_in); in grpc_permissive_percent_decode_slice() 152 p = GRPC_SLICE_START_PTR(slice_in); in grpc_permissive_percent_decode_slice() 154 uint8_t* q = GRPC_SLICE_START_PTR(out); in grpc_permissive_percent_decode_slice()
|
D | slice.cc | 33 memcpy(out, GRPC_SLICE_START_PTR(slice), GRPC_SLICE_LENGTH(slice)); in grpc_slice_to_c_string() 47 memcpy(GRPC_SLICE_START_PTR(out), GRPC_SLICE_START_PTR(s), in grpc_slice_copy() 200 memcpy(GRPC_SLICE_START_PTR(slice), source, length); in grpc_slice_from_copied_buffer() 305 memcpy(subset.data.inlined.bytes, GRPC_SLICE_START_PTR(source) + begin, in grpc_slice_sub() 414 return 0 == memcmp(GRPC_SLICE_START_PTR(a), GRPC_SLICE_START_PTR(b), in grpc_slice_default_eq_impl() 428 return memcmp(GRPC_SLICE_START_PTR(a), GRPC_SLICE_START_PTR(b), in grpc_slice_cmp() 436 return memcmp(GRPC_SLICE_START_PTR(a), b, b_length); in grpc_slice_str_cmp() 449 return 0 == memcmp(GRPC_SLICE_START_PTR(a), b, len); in grpc_slice_buf_start_eq() 453 const char* b = reinterpret_cast<const char*> GRPC_SLICE_START_PTR(s); in grpc_slice_rchr() 461 const char* b = reinterpret_cast<const char*> GRPC_SLICE_START_PTR(s); in grpc_slice_chr() [all …]
|
D | slice_string_helpers.cc | 31 return gpr_dump(reinterpret_cast<const char*> GRPC_SLICE_START_PTR(s), in grpc_dump_slice() 44 const uint8_t* str_ptr = GRPC_SLICE_START_PTR(str) + read_offset; in slice_find_separator_offset() 75 const uint8_t* str_buffer = GRPC_SLICE_START_PTR(str); in grpc_slice_split_inner() 116 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(str), in grpc_parse_slice_to_uint32()
|
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_grpc_integrity_only_record_protocol.cc | 50 uint8_t* data = GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect() 52 memcpy(data, GRPC_SLICE_START_PTR(unprotected_slices->slices[i]), in alts_grpc_integrity_only_extra_copy_protect() 58 iovec_t header_iovec = {GRPC_SLICE_START_PTR(protected_slice), in alts_grpc_integrity_only_extra_copy_protect() 61 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length + data_length, in alts_grpc_integrity_only_extra_copy_protect() 64 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect() 99 iovec_t header_iovec = {GRPC_SLICE_START_PTR(header_slice), in alts_grpc_integrity_only_protect() 101 iovec_t tag_iovec = {GRPC_SLICE_START_PTR(tag_slice), in alts_grpc_integrity_only_protect() 155 tag_iovec.iov_base = GRPC_SLICE_START_PTR(protected_slices->slices[0]); in alts_grpc_integrity_only_unprotect()
|
D | alts_grpc_record_protocol_common.cc | 55 rp->iovec_buf[i].iov_base = GRPC_SLICE_START_PTR(sb->slices[i]); in alts_grpc_record_protocol_convert_slice_buffer_to_iovec() 65 memcpy(dst, GRPC_SLICE_START_PTR(src->slices[i]), slice_length); in alts_grpc_record_protocol_copy_slice_buffer() 78 header_iovec.iov_base = GRPC_SLICE_START_PTR(rp->header_sb.slices[0]); in alts_grpc_record_protocol_get_header_iovec()
|
/external/grpc-grpc/test/core/handshake/ |
D | verify_peer_options.cc | 63 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(ca_slice); in server_thread() 65 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in server_thread() 67 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in server_thread() 137 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(ca_slice); in verify_peer_options_test() 139 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in verify_peer_options_test() 141 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in verify_peer_options_test() 240 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in main()
|
/external/grpc-grpc/test/core/iomgr/ |
D | error_test.cc | 59 GPR_ASSERT(strstr((char*)GRPC_SLICE_START_PTR(str), in test_set_get_str() 65 GPR_ASSERT(!strncmp((char*)GRPC_SLICE_START_PTR(str), "Test", in test_set_get_str() 71 GPR_ASSERT(!strncmp((char*)GRPC_SLICE_START_PTR(str), "longer message", in test_set_get_str() 84 GPR_ASSERT(!strncmp((char*)GRPC_SLICE_START_PTR(str), "message", in test_copy_and_unref() 94 GPR_ASSERT(!strncmp((char*)GRPC_SLICE_START_PTR(str), "message", in test_copy_and_unref() 100 GPR_ASSERT(!strncmp((char*)GRPC_SLICE_START_PTR(str), "syscall", in test_copy_and_unref() 185 GPR_ASSERT(!strncmp((char*)GRPC_SLICE_START_PTR(str), syscall, in test_os_error()
|
D | load_file_test.cc | 57 GPR_ASSERT(GRPC_SLICE_START_PTR(slice_with_null_term)[0] == 0); in test_load_empty_file() 106 GPR_ASSERT(!memcmp(GRPC_SLICE_START_PTR(slice), blah, strlen(blah))); in test_load_small_file() 111 GPR_ASSERT(strcmp((const char*)GRPC_SLICE_START_PTR(slice_with_null_term), in test_load_small_file() 143 current = GRPC_SLICE_START_PTR(slice); in test_load_big_file()
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | bin_encoder.cc | 57 uint8_t* in = GRPC_SLICE_START_PTR(input); in grpc_chttp2_base64_encode() 58 char* out = reinterpret_cast<char*> GRPC_SLICE_START_PTR(output); in grpc_chttp2_base64_encode() 104 for (in = GRPC_SLICE_START_PTR(input); in != GRPC_SLICE_END_PTR(input); in grpc_chttp2_huffman_compress() 110 out = GRPC_SLICE_START_PTR(output); in grpc_chttp2_huffman_compress() 111 for (in = GRPC_SLICE_START_PTR(input); in != GRPC_SLICE_END_PTR(input); in grpc_chttp2_huffman_compress() 177 uint8_t* in = GRPC_SLICE_START_PTR(input); in grpc_chttp2_base64_encode_and_huffman_compress() 178 uint8_t* start_out = GRPC_SLICE_START_PTR(output); in grpc_chttp2_base64_encode_and_huffman_compress()
|
D | bin_decoder.cc | 85 const uint8_t* bytes = GRPC_SLICE_START_PTR(slice); in grpc_chttp2_base64_infer_length_after_decode() 187 ctx.input_cur = GRPC_SLICE_START_PTR(input); in grpc_chttp2_base64_decode() 189 ctx.output_cur = GRPC_SLICE_START_PTR(output); in grpc_chttp2_base64_decode() 234 ctx.input_cur = GRPC_SLICE_START_PTR(input); in grpc_chttp2_base64_decode_with_length() 236 ctx.output_cur = GRPC_SLICE_START_PTR(output); in grpc_chttp2_base64_decode_with_length()
|
/external/grpc-grpc/src/ruby/ext/grpc/ |
D | rb_byte_buffer.c | 49 rb_str_cat(rb_string, (const char*)GRPC_SLICE_START_PTR(next), in grpc_rb_byte_buffer_to_s() 58 if (GRPC_SLICE_START_PTR(slice) == NULL) { in grpc_rb_slice_to_ruby_string() 62 return rb_str_new((char*)GRPC_SLICE_START_PTR(slice), in grpc_rb_slice_to_ruby_string()
|
/external/grpc-grpc/src/core/lib/security/transport/ |
D | secure_endpoint.cc | 126 *cur = GRPC_SLICE_START_PTR(ep->read_staging_buffer); in flush_read_staging_buffer() 150 uint8_t* cur = GRPC_SLICE_START_PTR(ep->read_staging_buffer); in on_read() 169 uint8_t* message_bytes = GRPC_SLICE_START_PTR(encrypted); in on_read() 205 if (cur != GRPC_SLICE_START_PTR(ep->read_staging_buffer)) { in on_read() 211 cur - GRPC_SLICE_START_PTR(ep->read_staging_buffer)))); in on_read() 252 *cur = GRPC_SLICE_START_PTR(ep->write_staging_buffer); in flush_write_staging_buffer() 263 uint8_t* cur = GRPC_SLICE_START_PTR(ep->write_staging_buffer); in endpoint_write() 285 uint8_t* message_bytes = GRPC_SLICE_START_PTR(plain); in endpoint_write() 325 if (cur != GRPC_SLICE_START_PTR(ep->write_staging_buffer)) { in endpoint_write() 331 cur - GRPC_SLICE_START_PTR(ep->write_staging_buffer)))); in endpoint_write()
|
/external/flatbuffers/include/flatbuffers/ |
D | grpc.h | 57 const uint8_t *mutable_data() const { return GRPC_SLICE_START_PTR(slice_); } in mutable_data() 59 const uint8_t *data() const { return GRPC_SLICE_START_PTR(slice_); } in data() 114 return GRPC_SLICE_START_PTR(slice_); in allocate() 118 FLATBUFFERS_ASSERT(p == GRPC_SLICE_START_PTR(slice_)); in deallocate() 127 FLATBUFFERS_ASSERT(old_p == GRPC_SLICE_START_PTR(slice_)); in reallocate_downward() 132 uint8_t *new_p = GRPC_SLICE_START_PTR(new_slice); in reallocate_downward() 142 FLATBUFFERS_ASSERT(p == GRPC_SLICE_START_PTR(slice_)); in get_slice()
|
/external/grpc-grpc/src/core/lib/surface/ |
D | validate_metadata.cc | 34 const uint8_t* p = GRPC_SLICE_START_PTR(slice); in conforms_to() 45 p - GRPC_SLICE_START_PTR(slice)), in conforms_to() 69 if (GRPC_SLICE_START_PTR(slice)[0] == ':') { in grpc_validate_header_key_is_legal()
|
/external/grpc-grpc/test/core/tsi/alts/handshaker/ |
D | alts_handshaker_client_test.cc | 90 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*service_account1), in validate_target_identities() 95 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*service_account2), in validate_target_identities() 181 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*application_protocol), in check_client_start_success() 184 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*record_protocol), in check_client_start_success() 192 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*target_name), in check_client_start_success() 219 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*application_protocol), in check_server_start_success() 230 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*record_protocol), in check_server_start_success() 251 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*in_bytes), in check_next_success()
|
/external/grpc-grpc/src/core/tsi/alts/handshaker/ |
D | alts_handshaker_service_api_util.cc | 81 return pb_encode_string(stream, GRPC_SLICE_START_PTR(*slice), in encode_string_or_bytes_cb() 104 if (!pb_encode_string(stream, GRPC_SLICE_START_PTR(*slice), in encode_repeated_string_cb() 118 if (!pb_read(stream, GRPC_SLICE_START_PTR(*cb_slice), stream->bytes_left)) in decode_string_or_bytes_cb() 141 if (!pb_read(stream, GRPC_SLICE_START_PTR(*cb_slice), stream->bytes_left)) in decode_repeated_string_cb()
|
/external/grpc-grpc/test/core/compression/ |
D | stream_compression_test.cc | 48 reinterpret_cast<char*> GRPC_SLICE_START_PTR(buf->slices[i]), in slice_buffer_equals_string() 117 char* str_recv = reinterpret_cast<char*> GRPC_SLICE_START_PTR(slice_recv); in test_stream_compression_simple_compress_decompress_with_output_size_constraint() 205 memcpy(GRPC_SLICE_START_PTR(slice3), GRPC_SLICE_START_PTR(slice1), in test_stream_compression_drop_context() 207 memcpy(GRPC_SLICE_START_PTR(slice3) + GRPC_SLICE_LENGTH(slice1), in test_stream_compression_drop_context() 208 GRPC_SLICE_START_PTR(slice2), GRPC_SLICE_LENGTH(slice2)); in test_stream_compression_drop_context()
|
/external/grpc-grpc/include/grpc/impl/codegen/ |
D | slice.h | 116 #define GRPC_SLICE_START_PTR(slice) \ macro 126 GRPC_SLICE_START_PTR(slice) + GRPC_SLICE_LENGTH(slice) 142 GRPC_SLICE_START_PTR(slice) + GRPC_SLICE_LENGTH(slice)
|
/external/grpc-grpc/test/core/security/ |
D | ssl_server_fuzzer.cc | 76 const char* ca_cert = (const char*)GRPC_SLICE_START_PTR(ca_slice); in LLVMFuzzerTestOneInput() 78 (const char*)GRPC_SLICE_START_PTR(key_slice); in LLVMFuzzerTestOneInput() 80 (const char*)GRPC_SLICE_START_PTR(cert_slice); in LLVMFuzzerTestOneInput()
|
/external/grpc-grpc/include/grpcpp/impl/codegen/ |
D | slice.h | 104 const uint8_t* begin() const { return GRPC_SLICE_START_PTR(slice_); } in begin() 122 reinterpret_cast<const char*>(GRPC_SLICE_START_PTR(*slice)), in StringRefFromSlice() 127 return grpc::string(reinterpret_cast<char*>(GRPC_SLICE_START_PTR(slice)), in StringFromCopiedSlice()
|
/external/grpc-grpc/test/core/util/ |
D | slice_splitter.cc | 65 memcpy(GRPC_SLICE_START_PTR(**dst_slices) + length, in grpc_split_slices() 66 GRPC_SLICE_START_PTR(src_slices[i]), in grpc_split_slices() 120 memcpy(out + length, GRPC_SLICE_START_PTR(slices[i]), in grpc_slice_merge()
|
/external/grpc-grpc/test/core/bad_ssl/servers/ |
D | cert.cc | 49 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in main() 51 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in main()
|
/external/grpc-grpc/src/core/tsi/ssl/session_cache/ |
D | ssl_session_openssl.cc | 44 unsigned char* start = GRPC_SLICE_START_PTR(slice); in OpenSslCachedSession() 53 const unsigned char* data = GRPC_SLICE_START_PTR(serialized_session_); in CopySession()
|