Home
last modified time | relevance | path

Searched refs:ByteSizeLong (Results 1 – 25 of 69) sorted by relevance

123

/third_party/mindspore/tests/ut/cpp/ps/core/
Dtcp_message_handler_test.cc39 EXPECT_EQ(meta->ByteSizeLong(), 2); in __anone5e489d30102()
49 EXPECT_EQ(meta.ByteSizeLong(), 2);
53 header.message_meta_length_ = meta.ByteSizeLong();
54 header.message_length_ = data.length() + meta.ByteSizeLong();
60 …memcpy_s(result + kHeaderLen, meta.ByteSizeLong(), meta.SerializeAsString().data(), meta.ByteSizeL…
61 memcpy_s(result + kHeaderLen + meta.ByteSizeLong(), data.length(), data.data(), data.length());
69 EXPECT_EQ(meta->ByteSizeLong(), 2); in __anone5e489d30202()
79 EXPECT_EQ(meta.ByteSizeLong(), 2);
83 header.message_meta_length_ = meta.ByteSizeLong();
84 header.message_length_ = data.length() + meta.ByteSizeLong();
[all …]
Dtcp_pb_server_test.cc84 …ssage(message_meta, Protos::RAW, kv_message.SerializeAsString().data(), kv_message.ByteSizeLong()); in TEST_F()
/third_party/protobuf/src/google/protobuf/
Dwire_format_unittest.cc222 WireFormat::SerializeWithCachedSizes(source, source.ByteSizeLong(), in TEST()
239 EXPECT_EQ(message.ByteSizeLong(), WireFormat::ByteSize(message)); in TEST()
241 EXPECT_EQ(0, message.ByteSizeLong()); in TEST()
249 EXPECT_EQ(message.ByteSizeLong(), WireFormat::ByteSize(message)); in TEST()
251 EXPECT_EQ(0, message.ByteSizeLong()); in TEST()
259 EXPECT_EQ(message.ByteSizeLong(), WireFormat::ByteSize(message)); in TEST()
261 EXPECT_EQ(0, message.ByteSizeLong()); in TEST()
269 EXPECT_EQ(message.ByteSizeLong(), WireFormat::ByteSize(message)); in TEST()
271 EXPECT_EQ(0, message.ByteSizeLong()); in TEST()
279 EXPECT_EQ(message.ByteSizeLong(), WireFormat::ByteSize(message)); in TEST()
[all …]
Dmessage_lite.cc378 const size_t size = ByteSizeLong(); // Force size to be cached. in SerializePartialToCodedStream()
393 ByteSizeConsistencyError(size, ByteSizeLong(), in SerializePartialToCodedStream()
408 const size_t size = ByteSizeLong(); // Force size to be cached. in SerializePartialToZeroCopyStream()
455 size_t byte_size = ByteSizeLong(); in AppendPartialToString()
485 const size_t byte_size = ByteSizeLong(); in SerializePartialToArray()
Dwrappers.pb.h178 size_t ByteSizeLong() const final;
315 size_t ByteSizeLong() const final;
452 size_t ByteSizeLong() const final;
589 size_t ByteSizeLong() const final;
726 size_t ByteSizeLong() const final;
863 size_t ByteSizeLong() const final;
1000 size_t ByteSizeLong() const final;
1137 size_t ByteSizeLong() const final;
1281 size_t ByteSizeLong() const final;
Dmessage_lite.h416 virtual size_t ByteSizeLong() const = 0;
420 int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); } in ByteSize()
Dpreserve_unknown_enum_test.cc140 EXPECT_EQ(0, message2.ByteSizeLong()); in TEST()
168 EXPECT_EQ(0, message2.ByteSizeLong()); in TEST()
Dwrappers.pb.cc421 size_t DoubleValue::ByteSizeLong() const { in ByteSizeLong() function in DoubleValue
616 size_t FloatValue::ByteSizeLong() const { in ByteSizeLong() function in FloatValue
811 size_t Int64Value::ByteSizeLong() const { in ByteSizeLong() function in Int64Value
1008 size_t UInt64Value::ByteSizeLong() const { in ByteSizeLong() function in UInt64Value
1205 size_t Int32Value::ByteSizeLong() const { in ByteSizeLong() function in Int32Value
1402 size_t UInt32Value::ByteSizeLong() const { in ByteSizeLong() function in UInt32Value
1599 size_t BoolValue::ByteSizeLong() const { in ByteSizeLong() function in BoolValue
1806 size_t StringValue::ByteSizeLong() const { in ByteSizeLong() function in StringValue
2010 size_t BytesValue::ByteSizeLong() const { in ByteSizeLong() function in BytesValue
Dstruct.pb.cc350 size_t Struct::ByteSizeLong() const { in ByteSizeLong() function in Struct
364 total_size += Struct_FieldsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); in ByteSizeLong()
745 size_t Value::ByteSizeLong() const { in ByteSizeLong() function in Value
1012 size_t ListValue::ByteSizeLong() const { in ByteSizeLong() function in ListValue
Dimplicit_weak_message.h81 size_t ByteSizeLong() const override { return data_.size(); } in ByteSizeLong() function
Dempty.pb.h146 size_t ByteSizeLong() const final;
Dempty.pb.cc176 size_t Empty::ByteSizeLong() const { in ByteSizeLong() function in Empty
Dproto3_arena_unittest.cc141 ASSERT_NE(original.ByteSizeLong(), arena_message->ByteSizeLong()); in TEST()
/third_party/mindspore/mindspore/ccsrc/ps/core/
Dleader_scaler.cc34 scale_out_message.ByteSizeLong())) { in ScaleOutAsync()
55 scale_in_message.ByteSizeLong())) { in ScaleInAsync()
Dabstract_node.cc42 register_message.ByteSizeLong())) { in Register()
119 … scale_out_done_message.SerializeAsString().data(), scale_out_done_message.ByteSizeLong())) { in set_scale_out_done()
139 … scale_in_done_message.SerializeAsString().data(), scale_in_done_message.ByteSizeLong())) { in set_scale_in_done()
159 event_message.ByteSizeLong())) { in BroadcastEvent()
544 heartbeat_message.ByteSizeLong(), kCommTimeoutInSeconds)) { in Heartbeat()
616 fetch_servers.ByteSizeLong())) { in FetchServers()
Dscheduler_node.cc73 heartbeat_resp_message.ByteSizeLong())) { in ProcessHeartbeat()
172 register_resp_message.ByteSizeLong())) { in ProcessRegister()
255 fetch_servers_message.ByteSizeLong())) { in ProcessFetchMetadata()
356 send_metadata_message.ByteSizeLong())) { in SendMetadata()
429 event_resp_message.ByteSizeLong())) { in SendEvent()
/third_party/mindspore/mindspore/ccsrc/ps/core/communicator/
Dtcp_client.cc279 size_t buf_size = message.ByteSizeLong(); in SendMessage()
280 uint32_t meta_size = SizeToUint(message.pb_meta().ByteSizeLong()); in SendMessage()
311 header.message_meta_length_ = SizeToUint(meta->ByteSizeLong()); in SendMessage()
318 …if (bufferevent_write(buffer_event_, meta->SerializeAsString().data(), meta->ByteSizeLong()) == -1… in SendMessage()
Dtcp_server.cc64 size_t buf_size = message->ByteSizeLong(); in SendMessage()
86 header.message_meta_length_ = SizeToUint(meta->ByteSizeLong()); in SendMessage()
93 …if (bufferevent_write(buffer_event_, meta->SerializeAsString().data(), meta->ByteSizeLong()) == -1… in SendMessage()
/third_party/mindspore/mindspore/ccsrc/ps/
Dparameter_server.cc647 res->resize(res_data.ByteSizeLong()); in HandlePullReq()
648 size_t dest_size = res_data.ByteSizeLong(); in HandlePullReq()
649 size_t src_size = res_data.ByteSizeLong(); in HandlePullReq()
763 res->resize(res_data.ByteSizeLong()); in HandleCheckReadyForPush()
764 size_t dest_size = res_data.ByteSizeLong(); in HandleCheckReadyForPush()
765 size_t src_size = res_data.ByteSizeLong(); in HandleCheckReadyForPush()
781 res->resize(res_data.ByteSizeLong()); in HandleCheckReadyForPull()
782 size_t dest_size = res_data.ByteSizeLong(); in HandleCheckReadyForPull()
783 size_t src_size = res_data.ByteSizeLong(); in HandleCheckReadyForPull()
802 res->resize(res_data.ByteSizeLong()); in HandleEmbeddingLookup()
[all …]
/third_party/grpc/test/core/util/
Dtsan_suppressions.txt12 race:ByteSizeLong
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc87 EXPECT_EQ(3, message.ByteSizeLong()); in TEST()
Dcpp_unittest.inc666 int size = message1.ByteSizeLong();
680 int packed_size = packed_message1.ByteSizeLong();
694 int size = message1.ByteSizeLong();
713 int size = message1.ByteSizeLong();
1847 int size = message1.ByteSizeLong();
1861 int size = message1.ByteSizeLong();
1876 int size = message1.ByteSizeLong();
1890 int size = message1.ByteSizeLong();
1904 int size = message1.ByteSizeLong();
1918 int size = message1.ByteSizeLong();
[all …]
/third_party/protobuf/src/google/protobuf/util/
Ddelimited_message_util.cc99 size_t size = message.ByteSizeLong(); in SerializeDelimitedToCodedStream()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/perf/
Dcache_pipeline_run.h78 auto size_needed = proto->ByteSizeLong(); in SendMessage()
/third_party/grpc/include/grpcpp/impl/codegen/
Dproto_utils.h52 int byte_size = static_cast<int>(msg.ByteSizeLong()); in GenericSerialize()

123