Home
last modified time | relevance | path

Searched refs:slice_ (Results 1 – 8 of 8) sorted by relevance

/external/flatbuffers/include/flatbuffers/
Dgrpc.h35 Message() : slice_(grpc_empty_slice()) {} in Message()
38 : slice_(add_ref ? grpc_slice_ref(slice) : slice) {} in Message()
42 Message(Message &&other) : slice_(other.slice_) { in Message()
43 other.slice_ = grpc_empty_slice(); in Message()
49 grpc_slice_unref(slice_);
50 slice_ = other.slice_;
51 other.slice_ = grpc_empty_slice();
55 ~Message() { grpc_slice_unref(slice_); } in ~Message()
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()
[all …]
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dslice.h38 Slice() : slice_(g_core_codegen_interface->grpc_empty_slice()) {} in Slice()
40 ~Slice() { g_core_codegen_interface->grpc_slice_unref(slice_); } in ~Slice()
45 : slice_(g_core_codegen_interface->grpc_slice_ref(slice)) {} in Slice()
49 Slice(grpc_slice slice, StealRef) : slice_(slice) {} in Slice()
53 : slice_(g_core_codegen_interface->grpc_slice_malloc(len)) {} in Slice()
57 : slice_(g_core_codegen_interface->grpc_slice_from_copied_buffer( in Slice()
62 : slice_(g_core_codegen_interface->grpc_slice_from_copied_buffer( in Slice()
69 : slice_(g_core_codegen_interface->grpc_slice_from_static_buffer( in Slice()
74 : slice_(g_core_codegen_interface->grpc_slice_ref(other.slice_)) {} in Slice()
78 std::swap(slice_, other.slice_);
[all …]
Dproto_buffer_writer.h92 slice_ = backup_slice_; in Next()
94 if (GRPC_SLICE_LENGTH(slice_) > remain) { in Next()
95 GRPC_SLICE_SET_LENGTH(slice_, remain); in Next()
102 slice_ = g_core_codegen_interface->grpc_slice_malloc( in Next()
107 *data = GRPC_SLICE_START_PTR(slice_); in Next()
109 GPR_CODEGEN_ASSERT(GRPC_SLICE_LENGTH(slice_) <= INT_MAX); in Next()
110 byte_count_ += * size = (int)GRPC_SLICE_LENGTH(slice_); in Next()
111 g_core_codegen_interface->grpc_slice_buffer_add(slice_buffer_, slice_); in Next()
123 GPR_CODEGEN_ASSERT(count <= static_cast<int>(GRPC_SLICE_LENGTH(slice_))); in BackUp()
125 if ((size_t)count == GRPC_SLICE_LENGTH(slice_)) { in BackUp()
[all …]
Dproto_buffer_reader.h76 *data = GRPC_SLICE_START_PTR(slice_) + GRPC_SLICE_LENGTH(slice_) - in Next()
85 &slice_)) { in Next()
88 g_core_codegen_interface->grpc_slice_unref(slice_); in Next()
89 *data = GRPC_SLICE_START_PTR(slice_); in Next()
91 GPR_CODEGEN_ASSERT(GRPC_SLICE_LENGTH(slice_) <= INT_MAX); in Next()
92 byte_count_ += * size = (int)GRPC_SLICE_LENGTH(slice_); in Next()
103 GPR_CODEGEN_ASSERT(count <= static_cast<int>(GRPC_SLICE_LENGTH(slice_))); in BackUp()
138 grpc_slice* slice() { return &slice_; } in slice()
145 grpc_slice slice_; ///< current slice passed back to the caller variable
Dbyte_buffer.h65 static_assert(std::is_same<decltype(slices[0].slice_), grpc_slice>::value, in ByteBuffer()
/external/perfetto/src/trace_processor/
Dproto_trace_parser_unittest.cc145 slice_ = new MockSliceTracker(&context_); in ProtoTraceParserTest()
146 context_.slice_tracker.reset(slice_); in ProtoTraceParserTest()
184 MockSliceTracker* slice_; member in perfetto::trace_processor::__anon83c82cc70111::ProtoTraceParserTest
593 EXPECT_CALL(*slice_, Scoped(1005000, 1, 0, 0, 23000)); in TEST_F()
594 EXPECT_CALL(*slice_, Begin(1010000, 1, 0, 0)); in TEST_F()
595 EXPECT_CALL(*slice_, End(1020000, 1, 0, 0)); in TEST_F()
683 EXPECT_CALL(*slice_, Scoped(1005000, 1, 1, 2, 23000)); in TEST_F()
689 EXPECT_CALL(*slice_, Begin(1010000, 1, 3, 4)); in TEST_F()
691 EXPECT_CALL(*slice_, End(1020000, 1, 3, 4)); in TEST_F()
725 EXPECT_CALL(*slice_, Begin(_, _, _, _)).Times(0); in TEST_F()
[all …]
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dshape.py363 slice_ = x.get_shape()[start:stop].as_list()
364 if all(s is not None for s in slice_):
365 return ops.convert_to_tensor(slice_, dtype=dtypes.int32, name=name)
/external/grpc-grpc/test/cpp/codegen/
Dproto_utils_test.cc36 const grpc_slice& slice() const { return writer_->slice_; } in slice()