Home
last modified time | relevance | path

Searched refs:SpaceUsed (Results 1 – 14 of 14) sorted by relevance

/external/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc485 TEST_F(UnknownFieldSetTest, SpaceUsed) { in TEST_F() argument
490 int base_size = empty_message.SpaceUsed(); in TEST_F()
492 EXPECT_EQ(base_size, empty_message.SpaceUsed()); in TEST_F()
496 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
497 base_size = empty_message.SpaceUsed(); in TEST_F()
500 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
501 base_size = empty_message.SpaceUsed(); in TEST_F()
504 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
505 base_size = empty_message.SpaceUsed(); in TEST_F()
508 EXPECT_LT(base_size, empty_message.SpaceUsed()); in TEST_F()
[all …]
Dextension_set_unittest.cc538 const int base_size = message.SpaceUsed(); \ in TEST()
542 EXPECT_LE(min_expected_size, message.SpaceUsed()); \ in TEST()
561 const int base_size = message.SpaceUsed(); in TEST()
566 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
572 const int base_size = message.SpaceUsed(); in TEST()
577 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
582 const int base_size = message.SpaceUsed(); in TEST()
587 int min_expected_size = base_size + foreign.SpaceUsed(); in TEST()
588 EXPECT_LE(min_expected_size, message.SpaceUsed()); in TEST()
604 const int base_size = message.SpaceUsed(); \ in TEST()
[all …]
Ddynamic_message_unittest.cc214 TEST_F(DynamicMessageTest, SpaceUsed) { in TEST_F() argument
223 int initial_space_used = message->SpaceUsed(); in TEST_F()
226 EXPECT_LT(initial_space_used, message->SpaceUsed()); in TEST_F()
Dunknown_field_set.cc90 total_size += field.group_->SpaceUsed(); in SpaceUsedExcludingSelf()
99 int UnknownFieldSet::SpaceUsed() const { in SpaceUsed() function in google::protobuf::UnknownFieldSet
Dmessage.cc158 int Message::SpaceUsed() const { in SpaceUsed() function in google::protobuf::Message
159 return GetReflection()->SpaceUsed(*this); in SpaceUsed()
Dmessage.h218 virtual int SpaceUsed() const;
373 virtual int SpaceUsed(const Message& message) const = 0;
Dunknown_field_set.h100 int SpaceUsed() const;
Drepeated_field.h369 static int SpaceUsed(const GenericType& value) { return value.SpaceUsed(); } in SpaceUsed() function
420 static int SpaceUsed(const string& value) { in SpaceUsed() function
979 allocated_bytes += TypeHandler::SpaceUsed(*cast<TypeHandler>(elements_[i]));
Dextension_set_heavy.cc354 total_size += lazymessage_value->SpaceUsed(); in SpaceUsedExcludingSelf()
356 total_size += down_cast<Message*>(message_value)->SpaceUsed(); in SpaceUsedExcludingSelf()
Dgenerated_message_reflection.h181 int SpaceUsed(const Message& message) const;
Dgenerated_message_reflection.cc235 int GeneratedMessageReflection::SpaceUsed(const Message& message) const { in SpaceUsed() function in google::protobuf::internal::GeneratedMessageReflection
331 total_size += sub_message->SpaceUsed(); in SpaceUsed()
Dextension_set.h433 virtual int SpaceUsed() const = 0;
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc825 EXPECT_LE(sizeof(unittest::TestAllTypes), message1.SpaceUsed()); in TEST()
826 const int empty_message_size = message1.SpaceUsed(); in TEST()
833 EXPECT_EQ(empty_message_size, message1.SpaceUsed()); in TEST()
839 EXPECT_LE(empty_message_size + sizeof(string), message1.SpaceUsed()); in TEST()
847 message1.SpaceUsed()); in TEST()
849 int previous_size = message1.SpaceUsed(); in TEST()
855 message1.optional_nested_message().SpaceUsed()); in TEST()
858 message1.SpaceUsed()); in TEST()
863 EXPECT_LE(sizeof(unittest::TestOneof2), message1.SpaceUsed()); in TEST()
865 const int empty_message_size = message1.SpaceUsed(); in TEST()
[all …]
/external/protobuf/
DCHANGES.txt449 * All message classes now have a SpaceUsed() method which returns an estimate