Home
last modified time | relevance | path

Searched refs:GRPC_SLICE_START_PTR (Results 1 – 25 of 122) sorted by relevance

12345

/external/grpc-grpc/test/core/slice/
Dslice_test.cc63 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/
Dbyte_buffer_reader_test.cc52 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/
Dpercent_encoding.cc47 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()
Dslice.cc33 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 …]
Dslice_string_helpers.cc31 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/
Dalts_grpc_integrity_only_record_protocol.cc50 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()
/external/grpc-grpc/test/core/handshake/
Dverify_peer_options.cc63 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/
Derror_test.cc59 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()
Dload_file_test.cc57 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/
Dbin_encoder.cc57 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()
Dbin_decoder.cc85 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/core/lib/security/transport/
Dsecure_endpoint.cc126 *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/grpc-grpc/src/ruby/ext/grpc/
Drb_byte_buffer.c49 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/flatbuffers/include/flatbuffers/
Dgrpc.h57 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/
Dvalidate_metadata.cc34 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/
Dalts_handshaker_client_test.cc90 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/test/core/compression/
Dstream_compression_test.cc48 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/src/core/tsi/alts/handshaker/
Dalts_handshaker_service_api_util.cc81 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/include/grpc/impl/codegen/
Dslice.h116 #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/
Dssl_server_fuzzer.cc76 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()
Djwt_verifier_test.cc210 reinterpret_cast<char*> GRPC_SLICE_START_PTR(s), GRPC_SLICE_LENGTH(s)); in test_claims_success()
229 reinterpret_cast<char*> GRPC_SLICE_START_PTR(s), GRPC_SLICE_LENGTH(s)); in test_expired_claims_failure()
254 reinterpret_cast<char*> GRPC_SLICE_START_PTR(s), GRPC_SLICE_LENGTH(s)); in test_invalid_claims_failure()
263 reinterpret_cast<char*> GRPC_SLICE_START_PTR(s), GRPC_SLICE_LENGTH(s)); in test_bad_audience_claims_failure()
277 reinterpret_cast<char*> GRPC_SLICE_START_PTR(s), GRPC_SLICE_LENGTH(s)); in test_bad_subject_claims_failure()
528 sig_bytes = GRPC_SLICE_START_PTR(sig); in corrupt_jwt_sig()
530 bad_b64_sig = grpc_base64_encode(GRPC_SLICE_START_PTR(sig), in corrupt_jwt_sig()
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dslice.h104 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/
Dslice_splitter.cc65 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/
Dcert.cc49 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/
Dssl_session_openssl.cc44 unsigned char* start = GRPC_SLICE_START_PTR(slice); in OpenSslCachedSession()
53 const unsigned char* data = GRPC_SLICE_START_PTR(serialized_session_); in CopySession()

12345