Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dunknown_field_set.cc85 fields_ = new vector<UnknownField>(); in InternalMergeFrom()
96 if (fields_ == NULL) fields_ = new vector<UnknownField>(); in MergeFrom()
109 if (fields_ == NULL) fields_ = new vector<UnknownField>(); in MergeFromAndDestroy()
122 int total_size = sizeof(*fields_) + sizeof(UnknownField) * fields_->size(); in SpaceUsedExcludingSelf()
125 const UnknownField& field = (*fields_)[i]; in SpaceUsedExcludingSelf()
127 case UnknownField::TYPE_LENGTH_DELIMITED: in SpaceUsedExcludingSelf()
132 case UnknownField::TYPE_GROUP: in SpaceUsedExcludingSelf()
147 UnknownField field; in AddVarint()
149 field.SetType(UnknownField::TYPE_VARINT); in AddVarint()
151 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);
268 inline const UnknownField& UnknownFieldSet::field(int index) const { in field()
272 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 …]
Dreflection_ops_unittest.cc160 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
163 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
Dtext_format.cc1918 const UnknownField& field = unknown_fields.field(i); in PrintUnknownFields()
1922 case UnknownField::TYPE_VARINT: in PrintUnknownFields()
1932 case UnknownField::TYPE_FIXED32: { in PrintUnknownFields()
1944 case UnknownField::TYPE_FIXED64: { in PrintUnknownFields()
1956 case UnknownField::TYPE_LENGTH_DELIMITED: { in PrintUnknownFields()
1986 case UnknownField::TYPE_GROUP: in PrintUnknownFields()
Ddescriptor.h114 class UnknownField; variable
Dwire_format_unittest.cc554 ASSERT_EQ(UnknownField::TYPE_LENGTH_DELIMITED, in TEST()
Ddescriptor.cc5833 const UnknownField* unknown_field = &unknown_fields.field(i); in ExamineIfOptionIsSet()
5838 if (unknown_field->type() == UnknownField::TYPE_LENGTH_DELIMITED) { in ExamineIfOptionIsSet()
5852 if (unknown_field->type() == UnknownField::TYPE_GROUP) { in ExamineIfOptionIsSet()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dmessage_differencer.cc999 typedef pair<int, const UnknownField*> IndexUnknownFieldPair;
1087 const UnknownField* current_repeated = NULL; in CompareUnknownFields()
1101 const UnknownField* focus_field; in CompareUnknownFields()
1126 case UnknownField::TYPE_VARINT: in CompareUnknownFields()
1130 case UnknownField::TYPE_FIXED32: in CompareUnknownFields()
1134 case UnknownField::TYPE_FIXED64: in CompareUnknownFields()
1138 case UnknownField::TYPE_LENGTH_DELIMITED: in CompareUnknownFields()
1142 case UnknownField::TYPE_GROUP: in CompareUnknownFields()
1542 const UnknownField* unknown_field = &unknown_fields->field( in PrintValue()
1551 StreamReporter::PrintUnknownFieldValue(const UnknownField* unknown_field) { in PrintUnknownFieldValue()
[all …]
Dmessage_differencer.h168 UnknownField::Type unknown_field_type;
635 virtual void PrintUnknownFieldValue(const UnknownField* unknown_field);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Dmessage.cc2283 google::protobuf::UnknownField::TYPE_VARINT) { in CheckAndGetInteger()