Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dunknown_field_set.h72 class UnknownField; // below variable
134 inline const UnknownField& field(int index) const;
138 inline UnknownField* mutable_field(int index);
150 void AddField(const UnknownField& field);
176 friend class UnknownField;
182 std::vector<UnknownField> fields_;
223 class PROTOBUF_EXPORT UnknownField {
269 void DeepCopy(const UnknownField& other);
314 inline const UnknownField& UnknownFieldSet::field(int index) const { in field()
317 inline UnknownField* UnknownFieldSet::mutable_field(int index) { in mutable_field()
[all …]
Dunknown_field_set.cc110 size_t total_size = sizeof(fields_) + sizeof(UnknownField) * fields_.size(); in SpaceUsedExcludingSelfLong()
113 const UnknownField& field = (fields_)[i]; in SpaceUsedExcludingSelfLong()
115 case UnknownField::TYPE_LENGTH_DELIMITED: in SpaceUsedExcludingSelfLong()
120 case UnknownField::TYPE_GROUP: in SpaceUsedExcludingSelfLong()
135 UnknownField field; in AddVarint()
137 field.SetType(UnknownField::TYPE_VARINT); in AddVarint()
143 UnknownField field; in AddFixed32()
145 field.SetType(UnknownField::TYPE_FIXED32); in AddFixed32()
151 UnknownField field; in AddFixed64()
153 field.SetType(UnknownField::TYPE_FIXED64); in AddFixed64()
[all …]
Dunknown_field_set_unittest.cc71 const UnknownField* GetField(const std::string& name) { in GetField()
90 const UnknownField& unknown_field = unknown_fields_->field(i); in GetBizarroData()
91 if (unknown_field.type() == UnknownField::TYPE_VARINT) { in GetBizarroData()
143 const UnknownField* field = GetField("optional_int32"); in TEST_F()
146 ASSERT_EQ(UnknownField::TYPE_VARINT, field->type()); in TEST_F()
151 const UnknownField* field = GetField("optional_fixed32"); in TEST_F()
154 ASSERT_EQ(UnknownField::TYPE_FIXED32, field->type()); in TEST_F()
159 const UnknownField* field = GetField("optional_fixed64"); in TEST_F()
162 ASSERT_EQ(UnknownField::TYPE_FIXED64, field->type()); in TEST_F()
167 const UnknownField* field = GetField("optional_string"); in TEST_F()
[all …]
Dwire_format.cc194 const UnknownField& field = unknown_fields.field(i); in SerializeUnknownFields()
196 case UnknownField::TYPE_VARINT: in SerializeUnknownFields()
201 case UnknownField::TYPE_FIXED32: in SerializeUnknownFields()
206 case UnknownField::TYPE_FIXED64: in SerializeUnknownFields()
211 case UnknownField::TYPE_LENGTH_DELIMITED: in SerializeUnknownFields()
218 case UnknownField::TYPE_GROUP: in SerializeUnknownFields()
232 const UnknownField& field = unknown_fields.field(i); in SerializeUnknownFieldsToArray()
235 case UnknownField::TYPE_VARINT: in SerializeUnknownFieldsToArray()
239 case UnknownField::TYPE_FIXED32: in SerializeUnknownFieldsToArray()
243 case UnknownField::TYPE_FIXED64: in SerializeUnknownFieldsToArray()
[all …]
Dreflection_ops_unittest.cc164 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
167 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
Dtext_format.cc2422 const UnknownField& field = unknown_fields.field(i); in PrintUnknownFields()
2426 case UnknownField::TYPE_VARINT: in PrintUnknownFields()
2436 case UnknownField::TYPE_FIXED32: { in PrintUnknownFields()
2448 case UnknownField::TYPE_FIXED64: { in PrintUnknownFields()
2460 case UnknownField::TYPE_LENGTH_DELIMITED: { in PrintUnknownFields()
2493 case UnknownField::TYPE_GROUP: in PrintUnknownFields()
Ddescriptor.h124 class UnknownField; variable
Dwire_format_unittest.cc570 ASSERT_EQ(UnknownField::TYPE_LENGTH_DELIMITED, in TEST()
Ddescriptor.cc6688 const UnknownField* unknown_field = &unknown_fields.field(i); in ExamineIfOptionIsSet()
6693 if (unknown_field->type() == UnknownField::TYPE_LENGTH_DELIMITED) { in ExamineIfOptionIsSet()
6707 if (unknown_field->type() == UnknownField::TYPE_GROUP) { in ExamineIfOptionIsSet()
/external/protobuf/csharp/src/Google.Protobuf/
DUnknownFieldSet.cs51 private readonly IDictionary<int, UnknownField> fields;
58 this.fields = new Dictionary<int, UnknownField>(); in UnknownFieldSet()
74 foreach (KeyValuePair<int, UnknownField> entry in fields) in WriteTo()
86 foreach (KeyValuePair<int, UnknownField> entry in fields) in CalculateSize()
103 IDictionary<int, UnknownField> otherFields = otherSet.fields; in Equals()
108 foreach (KeyValuePair<int, UnknownField> leftEntry in fields) in Equals()
110 UnknownField rightValue; in Equals()
129 foreach (KeyValuePair<int, UnknownField> field in fields) in GetHashCode()
142 private UnknownField lastField;
144 private UnknownField GetOrAddField(int number) in GetOrAddField()
[all …]
DUnknownField.cs52 internal sealed class UnknownField class
63 public UnknownField() in UnknownField() method in Google.Protobuf.UnknownField
76 UnknownField otherField = other as UnknownField; in Equals()
199 internal UnknownField MergeFrom(UnknownField other) in MergeFrom()
236 internal UnknownField AddVarint(ulong value) in AddVarint()
245 internal UnknownField AddFixed32(uint value) in AddFixed32()
254 internal UnknownField AddFixed64(ulong value) in AddFixed64()
263 internal UnknownField AddLengthDelimited(ByteString value) in AddLengthDelimited()
269 internal UnknownField AddGroup(UnknownFieldSet value) in AddGroup()
/external/protobuf/python/google/protobuf/pyext/
Dunknown_fields.cc216 const UnknownField* GetUnknownField(PyUnknownFieldRef* self) { in GetUnknownField()
235 const UnknownField* unknown_field = GetUnknownField(self); in GetFieldNumber()
244 const UnknownField* unknown_field = GetUnknownField(self); in GetWireType()
253 case UnknownField::TYPE_VARINT: in GetWireType()
256 case UnknownField::TYPE_FIXED32: in GetWireType()
259 case UnknownField::TYPE_FIXED64: in GetWireType()
262 case UnknownField::TYPE_LENGTH_DELIMITED: in GetWireType()
265 case UnknownField::TYPE_GROUP: in GetWireType()
273 const UnknownField* field = GetUnknownField(self); in GetData()
279 case UnknownField::TYPE_VARINT: in GetData()
[all …]
Dunknown_fields.h44 class UnknownField; variable
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormat.java1517 static final class UnknownField { class in TextFormat.Parser
1525 UnknownField(String message, Type type) { in UnknownField() method in TextFormat.Parser.UnknownField
1533 private void checkUnknownFields(final List<UnknownField> unknownFields) throws ParseException { in checkUnknownFields()
1539 for (UnknownField field : unknownFields) { in checkUnknownFields()
1551 for (UnknownField field : unknownFields) { in checkUnknownFields()
1552 if (field.type == UnknownField.Type.FIELD) { in checkUnknownFields()
1581 List<UnknownField> unknownFields = new ArrayList<UnknownField>(); in merge()
1596 List<UnknownField> unknownFields) in mergeField()
1612 List<UnknownField> unknownFields) in mergeField()
1640 unknownFields.add(new UnknownField(message, UnknownField.Type.EXTENSION)); in mergeField()
[all …]
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc1203 typedef std::pair<int, const UnknownField*> IndexUnknownFieldPair;
1291 const UnknownField* current_repeated = NULL; in CompareUnknownFields()
1310 const UnknownField* focus_field; in CompareUnknownFields()
1335 case UnknownField::TYPE_VARINT: in CompareUnknownFields()
1339 case UnknownField::TYPE_FIXED32: in CompareUnknownFields()
1343 case UnknownField::TYPE_FIXED64: in CompareUnknownFields()
1347 case UnknownField::TYPE_LENGTH_DELIMITED: in CompareUnknownFields()
1351 case UnknownField::TYPE_GROUP: in CompareUnknownFields()
1820 const UnknownField* unknown_field = in PrintValue()
1828 const UnknownField* unknown_field) { in PrintUnknownFieldValue()
[all …]
Dmessage_differencer.h182 UnknownField::Type unknown_field_type;
669 virtual void PrintUnknownFieldValue(const UnknownField* unknown_field);
/external/protobuf/csharp/src/Google.Protobuf.Test/
DUnknownFieldSetTest.cs53 UnknownField field = new UnknownField(); in MergeUnknownFieldSet()
/external/perfetto/src/trace_processor/util/
Dprotozero_to_text_unittests.cc176 TEST(ProtozeroToTextTest, UnknownField) { in TEST() argument
/external/llvm-project/libc/benchmarks/
DJSONTest.cpp129 "UnknownField": 10 in TEST()
/external/perfetto/src/perfetto_cmd/
Dpbtxt_to_pb_unittest.cc424 TEST(PbtxtToPb, UnknownField) { in TEST() argument
/external/protobuf/
DMakefile.am223 csharp/src/Google.Protobuf/UnknownField.cs \