Home
last modified time | relevance | path

Searched refs:slice_ (Results 1 – 19 of 19) 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/rust/crates/grpcio-sys/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()
63 : slice_(g_core_codegen_interface->grpc_slice_from_copied_buffer( in Slice()
70 : slice_(g_core_codegen_interface->grpc_slice_from_static_buffer( in Slice()
75 : slice_(g_core_codegen_interface->grpc_slice_ref(other.slice_)) {} in Slice()
79 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 = static_cast<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 (static_cast<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 *data = GRPC_SLICE_START_PTR(*slice_); in Next()
90 GPR_CODEGEN_ASSERT(GRPC_SLICE_LENGTH(*slice_) <= INT_MAX); in Next()
91 byte_count_ += * size = static_cast<int>(GRPC_SLICE_LENGTH(*slice_)); in Next()
102 GPR_CODEGEN_ASSERT(count <= static_cast<int>(GRPC_SLICE_LENGTH(*slice_))); in BackUp()
135 grpc_slice* slice() { return slice_; } in slice()
136 grpc_slice** mutable_slice_ptr() { return &slice_; } in mutable_slice_ptr()
143 grpc_slice* slice_; ///< current slice passed back to the caller variable
Dbyte_buffer.h71 static_assert(std::is_same<decltype(slices[0].slice_), grpc_slice>::value, in ByteBuffer()
/external/rust/crates/grpcio-sys/grpc/spm-cpp-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()
63 : slice_(g_core_codegen_interface->grpc_slice_from_copied_buffer( in Slice()
70 : slice_(g_core_codegen_interface->grpc_slice_from_static_buffer( in Slice()
75 : slice_(g_core_codegen_interface->grpc_slice_ref(other.slice_)) {} in Slice()
79 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 = static_cast<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 (static_cast<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 *data = GRPC_SLICE_START_PTR(*slice_); in Next()
90 GPR_CODEGEN_ASSERT(GRPC_SLICE_LENGTH(*slice_) <= INT_MAX); in Next()
91 byte_count_ += * size = static_cast<int>(GRPC_SLICE_LENGTH(*slice_)); in Next()
102 GPR_CODEGEN_ASSERT(count <= static_cast<int>(GRPC_SLICE_LENGTH(*slice_))); in BackUp()
135 grpc_slice* slice() { return slice_; } in slice()
136 grpc_slice** mutable_slice_ptr() { return &slice_; } in mutable_slice_ptr()
143 grpc_slice* slice_; ///< current slice passed back to the caller variable
Dbyte_buffer.h71 static_assert(std::is_same<decltype(slices[0].slice_), grpc_slice>::value, in ByteBuffer()
/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/tables/
Dmacros_unittest.cc65 TestSliceTable slice_{&pool_, &event_}; member in perfetto::trace_processor::__anoneb4d46060111::TableMacrosUnittest
66 TestCpuSliceTable cpu_slice_{&pool_, &slice_};
71 ASSERT_STREQ(slice_.table_name(), "slice"); in TEST_F()
82 id = slice_.Insert(TestSliceTable::Row(200, 123, 10, 0)).id; in TEST_F()
88 ASSERT_EQ(slice_.type().GetString(0), "slice"); in TEST_F()
89 ASSERT_EQ(slice_.ts()[0], 200); in TEST_F()
90 ASSERT_EQ(slice_.arg_set_id()[0], 123); in TEST_F()
91 ASSERT_EQ(slice_.dur()[0], 10); in TEST_F()
92 ASSERT_EQ(slice_.depth()[0], 0); in TEST_F()
94 id = slice_.Insert(TestSliceTable::Row(210, 456, base::nullopt, 0)).id; in TEST_F()
[all …]
/external/perfetto/src/trace_processor/importers/proto/
Dproto_trace_parser_unittest.cc249 slice_ = new MockSliceTracker(&context_); in ProtoTraceParserTest()
250 context_.slice_tracker.reset(slice_); in ProtoTraceParserTest()
305 MockSliceTracker* slice_; member in perfetto::trace_processor::__anonde9b72fc0111::ProtoTraceParserTest
836 EXPECT_CALL(*slice_, StartSlice(1005000, track, _, _)) in TEST_F()
841 EXPECT_CALL(*slice_, StartSlice(1010000, track, _, _)) in TEST_F()
846 EXPECT_CALL(*slice_, End(1020000, track, unknown_cat, kNullStringId, _)) in TEST_F()
929 EXPECT_CALL(*slice_, StartSlice(1010000, track, _, _)) in TEST_F()
934 EXPECT_CALL(*slice_, StartSlice(1015000, track, _, _)) in TEST_F()
939 EXPECT_CALL(*slice_, End(1020000, track, unknown_cat1, kNullStringId, _)) in TEST_F()
1113 EXPECT_CALL(*slice_, StartSlice(1005000, thread_1_track, _, _)) in TEST_F()
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dtype_inference_test.py659 def res_slice(self, ns, types_ns, node, value, slice_): argument
661 test_self.assertSetEqual(slice_, {int})
686 def res_slice(self, ns, types_ns, node_or_slice, value, slice_): argument
689 test_self.assertSetEqual(slice_, {int})
829 def res_slice(self, ns, types_ns, node_or_slice, value, slice_): argument
832 test_self.assertEqual(slice_, int)
859 def res_slice(self, ns, types_ns, node_or_slice, value, slice_): argument
862 test_self.assertEqual(slice_, int)
892 def res_slice(self, ns, types_ns, node_or_slice, value, slice_): argument
895 test_self.assertEqual(slice_, int)
[all …]
Dtype_inference.py116 def res_slice(self, ns, types_ns, node_or_slice, value, slice_): argument
/external/grpc-grpc/test/cpp/codegen/
Dproto_utils_test.cc36 const grpc_slice& slice() const { return writer_->slice_; } in slice()
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/
Dtfr_gen.py504 def res_slice(self, ns, types_ns, node_or_slice, value, slice_): argument