/external/protobuf/src/google/protobuf/ |
D | unknown_field_set_unittest.cc | 485 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 …]
|
D | extension_set_unittest.cc | 538 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 …]
|
D | dynamic_message_unittest.cc | 214 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()
|
D | unknown_field_set.cc | 90 total_size += field.group_->SpaceUsed(); in SpaceUsedExcludingSelf() 99 int UnknownFieldSet::SpaceUsed() const { in SpaceUsed() function in google::protobuf::UnknownFieldSet
|
D | message.cc | 158 int Message::SpaceUsed() const { in SpaceUsed() function in google::protobuf::Message 159 return GetReflection()->SpaceUsed(*this); in SpaceUsed()
|
D | message.h | 218 virtual int SpaceUsed() const; 373 virtual int SpaceUsed(const Message& message) const = 0;
|
D | unknown_field_set.h | 100 int SpaceUsed() const;
|
D | repeated_field.h | 369 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]));
|
D | extension_set_heavy.cc | 354 total_size += lazymessage_value->SpaceUsed(); in SpaceUsedExcludingSelf() 356 total_size += down_cast<Message*>(message_value)->SpaceUsed(); in SpaceUsedExcludingSelf()
|
D | generated_message_reflection.h | 181 int SpaceUsed(const Message& message) const;
|
D | generated_message_reflection.cc | 235 int GeneratedMessageReflection::SpaceUsed(const Message& message) const { in SpaceUsed() function in google::protobuf::internal::GeneratedMessageReflection 331 total_size += sub_message->SpaceUsed(); in SpaceUsed()
|
D | extension_set.h | 433 virtual int SpaceUsed() const = 0;
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_unittest.cc | 825 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/ |
D | CHANGES.txt | 449 * All message classes now have a SpaceUsed() method which returns an estimate
|