Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dwire_format_unittest.cc178 TEST(WireFormatTest, ByteSize) { in TEST() argument
182 EXPECT_EQ(message.ByteSize(), WireFormat::ByteSize(message)); in TEST()
184 EXPECT_EQ(0, message.ByteSize()); in TEST()
185 EXPECT_EQ(0, WireFormat::ByteSize(message)); in TEST()
192 EXPECT_EQ(message.ByteSize(), in TEST()
193 WireFormat::ByteSize(message)); in TEST()
195 EXPECT_EQ(0, message.ByteSize()); in TEST()
196 EXPECT_EQ(0, WireFormat::ByteSize(message)); in TEST()
203 EXPECT_EQ(message.ByteSize(), WireFormat::ByteSize(message)); in TEST()
205 EXPECT_EQ(0, message.ByteSize()); in TEST()
[all …]
Dmessage_lite.cc235 const int size = ByteSize(); // Force size to be cached. in SerializePartialToCodedStream()
240 ByteSizeConsistencyError(size, ByteSize(), end - buffer); in SerializePartialToCodedStream()
252 ByteSizeConsistencyError(size, ByteSize(), in SerializePartialToCodedStream()
279 int byte_size = ByteSize(); in AppendPartialToString()
284 ByteSizeConsistencyError(byte_size, ByteSize(), end - start); in AppendPartialToString()
305 int byte_size = ByteSize(); in SerializePartialToArray()
310 ByteSizeConsistencyError(byte_size, ByteSize(), end - start); in SerializePartialToArray()
Dextension_set_unittest.cc192 int size = source.ByteSize(); in TEST()
213 int size = source.ByteSize(); in TEST()
236 int size = source.ByteSize(); in TEST()
257 int size = source.ByteSize(); in TEST()
Dmessage.cc144 int Message::ByteSize() const { in ByteSize() function in google::protobuf::Message
145 int size = WireFormat::ByteSize(*this); in ByteSize()
Dmessage_lite.h206 virtual int ByteSize() const = 0;
Ddescriptor.pb.h187 int ByteSize() const;
281 int ByteSize() const;
463 int ByteSize() const;
560 int ByteSize() const;
728 int ByteSize() const;
954 int ByteSize() const;
1068 int ByteSize() const;
1177 int ByteSize() const;
1291 int ByteSize() const;
1416 int ByteSize() const;
[all …]
Dwire_format_lite_inl.h726 return value.ByteSize(); in GroupSize()
729 int size = value.ByteSize(); in MessageSize()
735 return value.MessageType::ByteSize(); in GroupSizeNoVirtual()
739 int size = value.MessageType::ByteSize(); in MessageSizeNoVirtual()
Ddescriptor.pb.cc776 int FileDescriptorSet::ByteSize() const { in ByteSize() function in google::protobuf::FileDescriptorSet
1238 int FileDescriptorProto::ByteSize() const { in ByteSize() function in google::protobuf::FileDescriptorProto
1560 int DescriptorProto_ExtensionRange::ByteSize() const { in ByteSize() function in google::protobuf::DescriptorProto_ExtensionRange
1980 int DescriptorProto::ByteSize() const { in ByteSize() function in google::protobuf::DescriptorProto
2633 int FieldDescriptorProto::ByteSize() const { in ByteSize() function in google::protobuf::FieldDescriptorProto
3000 int EnumDescriptorProto::ByteSize() const { in ByteSize() function in google::protobuf::EnumDescriptorProto
3315 int EnumValueDescriptorProto::ByteSize() const { in ByteSize() function in google::protobuf::EnumValueDescriptorProto
3629 int ServiceDescriptorProto::ByteSize() const { in ByteSize() function in google::protobuf::ServiceDescriptorProto
4009 int MethodDescriptorProto::ByteSize() const { in ByteSize() function in google::protobuf::MethodDescriptorProto
4536 int FileOptions::ByteSize() const { in ByteSize() function in google::protobuf::FileOptions
[all …]
Dwire_format.h124 static int ByteSize(const Message& message);
Dextension_set.cc1020 int ExtensionSet::ByteSize() const { in ByteSize() function in google::protobuf::internal::ExtensionSet
1025 total_size += iter->second.ByteSize(iter->first); in ByteSize()
1231 int ExtensionSet::Extension::ByteSize(int number) const { in ByteSize() function in google::protobuf::internal::ExtensionSet::Extension
1370 return ByteSize(number); in MessageSetItemByteSize()
1381 int message_size = message_value->ByteSize(); in MessageSetItemByteSize()
Dextension_set.h368 int ByteSize() const;
446 int ByteSize(int number) const;
Dmessage.h292 virtual int ByteSize() const;
Dwire_format.cc881 int WireFormat::ByteSize(const Message& message) { in ByteSize() function in google::protobuf::internal::WireFormat
1037 int message_size = sub_message.ByteSize(); in MessageSetItemByteSize()
Dunknown_field_set_unittest.cc238 int size = WireFormat::ByteSize(empty_message_); in TEST_F()
Dtest_util_lite.cc1102 EXPECT_EQ(0, message.ByteSize()); in ExpectExtensionsClear()
Dtest_util.cc1291 EXPECT_EQ(0, message.ByteSize()); in ExpectExtensionsClear()
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py1095 self.assertEquals(proto.ByteSize(), 0)
1104 self.assertEquals(proto.ByteSize(), 0)
1224 self.assertEqual(proto.ByteSize(), len(serialized))
1436 return self.proto.ByteSize()
1439 self.assertEqual(0, self.proto.ByteSize())
1575 self.assertEqual(0, proto.ByteSize())
1579 self.assertEqual(2, proto.ByteSize())
1584 self.assertEqual(2, self.proto.ByteSize())
1586 self.assertEqual(3, self.proto.ByteSize())
1588 self.assertEqual(0, self.proto.ByteSize())
[all …]
Dwire_format.py195 + message.ByteSize())
200 + _VarUInt64ByteSizeNoTag(message.ByteSize())
201 + message.ByteSize())
214 message_size = msg.ByteSize()
Dencoder.py274 result += element.ByteSize()
279 return tag_size + value.ByteSize()
293 l = element.ByteSize()
299 l = value.ByteSize()
324 l = value.ByteSize()
646 local_EncodeVarint(write, element.ByteSize())
652 local_EncodeVarint(write, value.ByteSize())
682 local_EncodeVarint(write, value.ByteSize())
Dwire_format_test.py203 def ByteSize(self): member in WireFormatTest.testByteSizeFunctions.MockMessage
/external/protobuf/python/google/protobuf/
Dmessage.py229 def ByteSize(self): member in Message
Dreflection.py771 def ByteSize(self): function
784 cls.ByteSize = ByteSize
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc462 int size = message1.ByteSize(); in TEST()
476 int packed_size = packed_message1.ByteSize(); in TEST()
490 int size = message1.ByteSize(); in TEST()
509 int size = message1.ByteSize(); in TEST()
644 EXPECT_EQ(3, message.ByteSize()); in TEST()
/external/protobuf/src/google/protobuf/compiler/
Dplugin.pb.h79 int ByteSize() const;
202 int ByteSize() const;
319 int ByteSize() const;
Dplugin.pb.cc370 int CodeGeneratorRequest::ByteSize() const { in ByteSize() function in google::protobuf::compiler::CodeGeneratorRequest
711 int CodeGeneratorResponse_File::ByteSize() const { in ByteSize() function in google::protobuf::compiler::CodeGeneratorResponse_File
988 int CodeGeneratorResponse::ByteSize() const { in ByteSize() function in google::protobuf::compiler::CodeGeneratorResponse