Home
last modified time | relevance | path

Searched refs:UnknownField (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/src/google/protobuf/
Dunknown_field_set.cc99 fields_ = new vector<UnknownField>(); in InternalMergeFrom()
110 if (fields_ == NULL) fields_ = new vector<UnknownField>(); in MergeFrom()
123 if (fields_ == NULL) fields_ = new vector<UnknownField>(); in MergeFromAndDestroy()
136 int total_size = sizeof(*fields_) + sizeof(UnknownField) * fields_->size(); in SpaceUsedExcludingSelf()
139 const UnknownField& field = (*fields_)[i]; in SpaceUsedExcludingSelf()
141 case UnknownField::TYPE_LENGTH_DELIMITED: in SpaceUsedExcludingSelf()
146 case UnknownField::TYPE_GROUP: in SpaceUsedExcludingSelf()
161 UnknownField field; in AddVarint()
163 field.SetType(UnknownField::TYPE_VARINT); in AddVarint()
165 if (fields_ == NULL) fields_ = new vector<UnknownField>(); in AddVarint()
[all …]
Dunknown_field_set.h61 class UnknownField; // below variable
110 inline const UnknownField& field(int index) const;
114 inline UnknownField* mutable_field(int index);
126 void AddField(const UnknownField& field);
151 friend class UnknownField;
163 std::vector<UnknownField>* fields_;
168 class LIBPROTOBUF_EXPORT UnknownField {
220 void DeepCopy(const UnknownField& other);
262 inline const UnknownField& UnknownFieldSet::field(int index) const { in field()
266 inline UnknownField* UnknownFieldSet::mutable_field(int index) { in mutable_field()
[all …]
Dunknown_field_set_unittest.cc69 const UnknownField* GetField(const string& name) { in GetField()
88 const UnknownField& unknown_field = unknown_fields_->field(i); in GetBizarroData()
89 if (unknown_field.type() == UnknownField::TYPE_VARINT) { in GetBizarroData()
141 const UnknownField* field = GetField("optional_int32"); in TEST_F()
144 ASSERT_EQ(UnknownField::TYPE_VARINT, field->type()); in TEST_F()
149 const UnknownField* field = GetField("optional_fixed32"); in TEST_F()
152 ASSERT_EQ(UnknownField::TYPE_FIXED32, field->type()); in TEST_F()
157 const UnknownField* field = GetField("optional_fixed64"); in TEST_F()
160 ASSERT_EQ(UnknownField::TYPE_FIXED64, field->type()); in TEST_F()
165 const UnknownField* field = GetField("optional_string"); in TEST_F()
[all …]
Dwire_format.cc182 const UnknownField& field = unknown_fields.field(i); in SerializeUnknownFields()
184 case UnknownField::TYPE_VARINT: in SerializeUnknownFields()
189 case UnknownField::TYPE_FIXED32: in SerializeUnknownFields()
194 case UnknownField::TYPE_FIXED64: in SerializeUnknownFields()
199 case UnknownField::TYPE_LENGTH_DELIMITED: in SerializeUnknownFields()
206 case UnknownField::TYPE_GROUP: in SerializeUnknownFields()
221 const UnknownField& field = unknown_fields.field(i); in SerializeUnknownFieldsToArray()
224 case UnknownField::TYPE_VARINT: in SerializeUnknownFieldsToArray()
228 case UnknownField::TYPE_FIXED32: in SerializeUnknownFieldsToArray()
232 case UnknownField::TYPE_FIXED64: in SerializeUnknownFieldsToArray()
[all …]
Dtext_format.cc1886 const UnknownField& field = unknown_fields.field(i); in PrintUnknownFields()
1890 case UnknownField::TYPE_VARINT: in PrintUnknownFields()
1900 case UnknownField::TYPE_FIXED32: { in PrintUnknownFields()
1912 case UnknownField::TYPE_FIXED64: { in PrintUnknownFields()
1924 case UnknownField::TYPE_LENGTH_DELIMITED: { in PrintUnknownFields()
1954 case UnknownField::TYPE_GROUP: in PrintUnknownFields()
Dreflection_ops_unittest.cc160 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
163 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
Ddescriptor.h114 class UnknownField; variable
Dwire_format_unittest.cc554 ASSERT_EQ(UnknownField::TYPE_LENGTH_DELIMITED, in TEST()
Ddescriptor.cc5814 const UnknownField* unknown_field = &unknown_fields.field(i); in ExamineIfOptionIsSet()
5819 if (unknown_field->type() == UnknownField::TYPE_LENGTH_DELIMITED) { in ExamineIfOptionIsSet()
5833 if (unknown_field->type() == UnknownField::TYPE_GROUP) { in ExamineIfOptionIsSet()
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc996 typedef pair<int, const UnknownField*> IndexUnknownFieldPair;
1084 const UnknownField* current_repeated = NULL; in CompareUnknownFields()
1098 const UnknownField* focus_field; in CompareUnknownFields()
1123 case UnknownField::TYPE_VARINT: in CompareUnknownFields()
1127 case UnknownField::TYPE_FIXED32: in CompareUnknownFields()
1131 case UnknownField::TYPE_FIXED64: in CompareUnknownFields()
1135 case UnknownField::TYPE_LENGTH_DELIMITED: in CompareUnknownFields()
1139 case UnknownField::TYPE_GROUP: in CompareUnknownFields()
1539 const UnknownField* unknown_field = &unknown_fields->field( in PrintValue()
1548 StreamReporter::PrintUnknownFieldValue(const UnknownField* unknown_field) { in PrintUnknownFieldValue()
[all …]
Dmessage_differencer.h168 UnknownField::Type unknown_field_type;
629 virtual void PrintUnknownFieldValue(const UnknownField* unknown_field);
/external/perfetto/src/perfetto_cmd/
Dpbtxt_to_pb_unittest.cc356 TEST(PbtxtToPb, UnknownField) { in TEST() argument
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc2286 google::protobuf::UnknownField::TYPE_VARINT) { in CheckAndGetInteger()