Home
last modified time | relevance | path

Searched refs:slice_length (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/src/core/lib/surface/
Dbyte_buffer_reader.cc93 const size_t slice_length = GRPC_SLICE_LENGTH(in_slice); in grpc_byte_buffer_reader_readall() local
94 memcpy(&(outbuf[bytes_read]), GRPC_SLICE_START_PTR(in_slice), slice_length); in grpc_byte_buffer_reader_readall()
95 bytes_read += slice_length; in grpc_byte_buffer_reader_readall()
/external/grpc-grpc/src/core/lib/surface/
Dbyte_buffer_reader.cc121 const size_t slice_length = GRPC_SLICE_LENGTH(in_slice); in grpc_byte_buffer_reader_readall() local
122 memcpy(&(outbuf[bytes_read]), GRPC_SLICE_START_PTR(in_slice), slice_length); in grpc_byte_buffer_reader_readall()
123 bytes_read += slice_length; in grpc_byte_buffer_reader_readall()
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_zero_copy_grpc_protector.cc77 size_t slice_length = GRPC_SLICE_LENGTH(sb->slices[i]); in read_frame_size() local
78 if (remaining <= slice_length) { in read_frame_size()
83 memcpy(buf, GRPC_SLICE_START_PTR(sb->slices[i]), slice_length); in read_frame_size()
84 buf += slice_length; in read_frame_size()
85 remaining -= slice_length; in read_frame_size()
Dalts_grpc_record_protocol_common.cc64 size_t slice_length = GRPC_SLICE_LENGTH(src->slices[i]); in alts_grpc_record_protocol_copy_slice_buffer() local
65 memcpy(dst, GRPC_SLICE_START_PTR(src->slices[i]), slice_length); in alts_grpc_record_protocol_copy_slice_buffer()
66 dst += slice_length; in alts_grpc_record_protocol_copy_slice_buffer()
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_zero_copy_grpc_protector.cc77 size_t slice_length = GRPC_SLICE_LENGTH(sb->slices[i]); in read_frame_size() local
78 if (remaining <= slice_length) { in read_frame_size()
83 memcpy(buf, GRPC_SLICE_START_PTR(sb->slices[i]), slice_length); in read_frame_size()
84 buf += slice_length; in read_frame_size()
85 remaining -= slice_length; in read_frame_size()
Dalts_grpc_record_protocol_common.cc64 size_t slice_length = GRPC_SLICE_LENGTH(src->slices[i]); in alts_grpc_record_protocol_copy_slice_buffer() local
65 memcpy(dst, GRPC_SLICE_START_PTR(src->slices[i]), slice_length); in alts_grpc_record_protocol_copy_slice_buffer()
66 dst += slice_length; in alts_grpc_record_protocol_copy_slice_buffer()
/external/tensorflow/tensorflow/core/kernels/
Dload_and_remap_matrix_op.cc177 const int64 slice_length = in Compute() local
183 slice.set_length(0, slice_length); in Compute()
185 row_start += slice_length; in Compute()
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/
Dfake_transport_security.cc130 size_t slice_length = GRPC_SLICE_LENGTH(sb->slices[i]); in read_frame_size() local
131 if (remaining <= slice_length) { in read_frame_size()
136 memcpy(buf, GRPC_SLICE_START_PTR(sb->slices[i]), slice_length); in read_frame_size()
137 buf += slice_length; in read_frame_size()
138 remaining -= slice_length; in read_frame_size()
/external/grpc-grpc/src/core/tsi/
Dfake_transport_security.cc134 size_t slice_length = GRPC_SLICE_LENGTH(sb->slices[i]); in read_frame_size() local
135 if (remaining <= slice_length) { in read_frame_size()
140 memcpy(buf, GRPC_SLICE_START_PTR(sb->slices[i]), slice_length); in read_frame_size()
141 buf += slice_length; in read_frame_size()
142 remaining -= slice_length; in read_frame_size()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dtcp_posix.cc1312 size_t slice_length; in UpdateOffsetForBytesSent() local
1314 slice_length = GRPC_SLICE_LENGTH(buf_.slices[out_offset_.slice_idx]); in UpdateOffsetForBytesSent()
1315 if (slice_length > trailing) { in UpdateOffsetForBytesSent()
1316 out_offset_.byte_idx = slice_length - trailing; in UpdateOffsetForBytesSent()
1319 trailing -= slice_length; in UpdateOffsetForBytesSent()
1499 size_t slice_length; in tcp_flush() local
1502 slice_length = in tcp_flush()
1504 if (slice_length > trailing) { in tcp_flush()
1505 tcp->outgoing_byte_idx = slice_length - trailing; in tcp_flush()
1508 trailing -= slice_length; in tcp_flush()
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/
Dalts_grpc_record_protocol_test.cc59 size_t slice_length = gsec_test_bias_random_uint32(kMaxSliceLength) + 1; in create_random_slice_buffer() local
60 grpc_slice slice = GRPC_SLICE_MALLOC(slice_length); in create_random_slice_buffer()
61 gsec_test_random_bytes(GRPC_SLICE_START_PTR(slice), slice_length); in create_random_slice_buffer()
Dalts_iovec_record_protocol_test.cc68 size_t slice_length = in randomly_slice() local
70 iovec_t slice = {input, slice_length}; in randomly_slice()
72 input += slice_length; in randomly_slice()
73 input_length -= slice_length; in randomly_slice()
/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_posix.cc862 size_t slice_length; in tcp_flush() local
865 slice_length = in tcp_flush()
867 if (slice_length > trailing) { in tcp_flush()
868 tcp->outgoing_byte_idx = slice_length - trailing; in tcp_flush()
871 trailing -= slice_length; in tcp_flush()
/external/grpc-grpc/test/core/tsi/alts/crypt/
Daes_gcm_test.cc57 size_t slice_length = in gsec_randomly_slice() local
59 struct iovec slice = {input, slice_length}; in gsec_randomly_slice()
61 input += slice_length; in gsec_randomly_slice()
62 input_length -= slice_length; in gsec_randomly_slice()
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc980 Py_ssize_t length, from, to, step, slice_length; in DeleteRepeatedField() local
987 from = to = step = slice_length = 0; in DeleteRepeatedField()
991 length, &from, &to, &step, &slice_length); in DeleteRepeatedField()
995 length, &from, &to, &step, &slice_length); in DeleteRepeatedField()