Home
last modified time | relevance | path

Searched refs:slice_out (Results 1 – 9 of 9) sorted by relevance

/third_party/grpc/src/core/lib/compression/
Dstream_compression_gzip.cc52 grpc_slice slice_out = GRPC_SLICE_MALLOC(slice_size); in gzip_flate() local
54 ctx->zs.next_out = GRPC_SLICE_START_PTR(slice_out); in gzip_flate()
62 grpc_slice_unref_internal(slice_out); in gzip_flate()
93 grpc_slice_unref_internal(slice_out); in gzip_flate()
109 grpc_slice_unref_internal(slice_out); in gzip_flate()
117 grpc_slice_buffer_add(out, slice_out); in gzip_flate()
119 size_t len = GRPC_SLICE_LENGTH(slice_out); in gzip_flate()
120 GRPC_SLICE_SET_LENGTH(slice_out, len - ctx->zs.avail_out); in gzip_flate()
121 grpc_slice_buffer_add(out, slice_out); in gzip_flate()
123 grpc_slice_unref_internal(slice_out); in gzip_flate()
/third_party/grpc/test/core/surface/
Dbyte_buffer_reader_test.cc201 grpc_slice slice_out; in test_readall() local
219 slice_out = grpc_byte_buffer_reader_readall(&reader); in test_readall()
221 GPR_ASSERT(GRPC_SLICE_LENGTH(slice_out) == 512 + 1024); in test_readall()
222 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(slice_out), lotsa_as, 512) == 0); in test_readall()
223 GPR_ASSERT(memcmp(&(GRPC_SLICE_START_PTR(slice_out)[512]), lotsa_bs, 1024) == in test_readall()
225 grpc_slice_unref(slice_out); in test_readall()
236 grpc_slice slice_out; in test_byte_buffer_copy() local
255 slice_out = grpc_byte_buffer_reader_readall(&reader); in test_byte_buffer_copy()
257 GPR_ASSERT(GRPC_SLICE_LENGTH(slice_out) == 512 + 1024); in test_byte_buffer_copy()
258 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(slice_out), lotsa_as, 512) == 0); in test_byte_buffer_copy()
[all …]
/third_party/grpc/src/core/lib/slice/
Dpercent_encoding.cc91 grpc_slice* slice_out) { in grpc_strict_percent_decode_slice() argument
111 *slice_out = grpc_slice_ref_internal(slice_in); in grpc_strict_percent_decode_slice()
115 *slice_out = GRPC_SLICE_MALLOC(out_length); in grpc_strict_percent_decode_slice()
116 uint8_t* q = GRPC_SLICE_START_PTR(*slice_out); in grpc_strict_percent_decode_slice()
125 GPR_ASSERT(q == GRPC_SLICE_END_PTR(*slice_out)); in grpc_strict_percent_decode_slice()
Dpercent_encoding.h59 grpc_slice* slice_out);
/third_party/grpc/src/core/ext/transport/chttp2/transport/
Dframe_data.cc94 grpc_slice_buffer* slices, grpc_slice* slice_out, in grpc_deframe_unprocessed_incoming_frames() argument
211 GPR_ASSERT(slice_out != nullptr); in grpc_deframe_unprocessed_incoming_frames()
223 slice_out))) { in grpc_deframe_unprocessed_incoming_frames()
242 slice_out))) { in grpc_deframe_unprocessed_incoming_frames()
256 slice_out)) { in grpc_deframe_unprocessed_incoming_frames()
Dframe_data.h79 grpc_slice_buffer* slices, grpc_slice* slice_out,
Dinternal.h246 grpc_error* Push(const grpc_slice& slice, grpc_slice* slice_out);
Dchttp2_transport.cc3070 grpc_slice* slice_out) { in Push() argument
3080 if (slice_out != nullptr) { in Push()
3081 *slice_out = slice; in Push()
/third_party/mindspore/mindspore/ops/_grad/
Dgrad_array_ops.py354 slice_out = P.Slice()(dout, out_offset[i], input_shapes[i])
355 dx = dx + [slice_out]
362 slice_out = P.Slice()(dout, out_offset[i], input_shapes[i])
363 dx = dx + (slice_out,)