Home
last modified time | relevance | path

Searched refs:field_number (Results 1 – 20 of 20) sorted by relevance

/external/protobuf/python/google/protobuf/internal/
Dwire_format.py80 def PackTag(field_number, wire_type): argument
90 return (field_number << TAG_TYPE_BITS) | wire_type
122 def Int32ByteSize(field_number, int32): argument
123 return Int64ByteSize(field_number, int32)
130 def Int64ByteSize(field_number, int64): argument
132 return UInt64ByteSize(field_number, 0xffffffffffffffff & int64)
135 def UInt32ByteSize(field_number, uint32): argument
136 return UInt64ByteSize(field_number, uint32)
139 def UInt64ByteSize(field_number, uint64): argument
140 return TagByteSize(field_number) + _VarUInt64ByteSizeNoTag(uint64)
[all …]
Dencoder.py102 def _TagSize(field_number): argument
106 return _VarintSize(wire_format.PackTag(field_number, 0))
121 def SpecificSizer(field_number, is_repeated, is_packed): argument
122 tag_size = _TagSize(field_number)
150 def SpecificSizer(field_number, is_repeated, is_packed): argument
151 tag_size = _TagSize(field_number)
179 def SpecificSizer(field_number, is_repeated, is_packed): argument
180 tag_size = _TagSize(field_number)
221 def StringSizer(field_number, is_repeated, is_packed): argument
224 tag_size = _TagSize(field_number)
[all …]
Dwire_format_test.py45 field_number = 0xabc
47 self.assertEqual((field_number << 3) | tag_type,
48 wire_format.PackTag(field_number, tag_type))
51 self.assertRaises(message.EncodeError, PackTag, field_number, 6)
53 self.assertRaises(message.EncodeError, PackTag, field_number, -1)
59 field_number, wire_type = wire_format.UnpackTag(
61 self.assertEqual(expected_field_number, field_number)
105 for field_number, tag_bytes in ((15, 1), (16, 2), (2047, 2), (2048, 3)):
107 actual_size = byte_size_fn(field_number, value)
111 byte_size_fn, field_number, value, expected_size, actual_size))
Ddecoder.py183 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): argument
203 tag_bytes = encoder.TagBytes(field_number, wire_type)
304 def StringDecoder(field_number, is_repeated, is_packed, key, new_default): argument
312 tag_bytes = encoder.TagBytes(field_number,
342 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): argument
349 tag_bytes = encoder.TagBytes(field_number,
379 def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): argument
382 end_tag_bytes = encoder.TagBytes(field_number,
388 tag_bytes = encoder.TagBytes(field_number,
426 def MessageDecoder(field_number, is_repeated, is_packed, key, new_default): argument
[all …]
/external/protobuf/src/google/protobuf/
Dwire_format_lite.cc185 int field_number, int value) { in SkipUnknownEnum() argument
209 void WireFormatLite::WriteInt32(int field_number, int32 value, in WriteInt32() argument
211 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt32()
214 void WireFormatLite::WriteInt64(int field_number, int64 value, in WriteInt64() argument
216 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt64()
219 void WireFormatLite::WriteUInt32(int field_number, uint32 value, in WriteUInt32() argument
221 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt32()
224 void WireFormatLite::WriteUInt64(int field_number, uint64 value, in WriteUInt64() argument
226 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt64()
229 void WireFormatLite::WriteSInt32(int field_number, int32 value, in WriteSInt32() argument
[all …]
Dwire_format_lite.h154 static uint32 MakeTag(int field_number, WireType type);
160 static inline int TagSize(int field_number, WireFormatLite::FieldType type);
235 #define field_number int field_number macro
294 static inline bool ReadGroup (field_number, input, MessageLite* value);
301 static inline bool ReadGroupNoVirtual(field_number, input,
309 static inline void WriteTag(field_number, WireType type, output) INL;
328 static void WriteInt32 (field_number, int32 value, output);
329 static void WriteInt64 (field_number, int64 value, output);
330 static void WriteUInt32 (field_number, uint32 value, output);
331 static void WriteUInt64 (field_number, uint64 value, output);
[all …]
Dwire_format_lite_inl.h344 inline bool WireFormatLite::ReadGroup(int field_number, in ReadGroup() argument
351 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroup()
372 inline bool WireFormatLite::ReadGroupNoVirtual(int field_number, in ReadGroupNoVirtual() argument
379 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroupNoVirtual()
402 inline void WireFormatLite::WriteTag(int field_number, WireType type, in WriteTag() argument
404 output->WriteTag(MakeTag(field_number, type)); in WriteTag()
465 inline void WireFormatLite::WriteGroupNoVirtual(int field_number, in WriteGroupNoVirtual() argument
468 WriteTag(field_number, WIRETYPE_START_GROUP, output); in WriteGroupNoVirtual()
470 WriteTag(field_number, WIRETYPE_END_GROUP, output); in WriteGroupNoVirtual()
473 inline void WireFormatLite::WriteMessageNoVirtual(int field_number, in WriteMessageNoVirtual() argument
[all …]
Ddescriptor_database.h85 int field_number,
148 int field_number,
174 Value FindExtension(const string& containing_type, int field_number);
293 int field_number,
322 int field_number,
351 int field_number,
Ddescriptor_database.cc191 int field_number) { in FindExtension() argument
193 make_pair(containing_type, field_number), in FindExtension()
281 int field_number, in FindFileContainingExtension() argument
283 return MaybeCopy(index_.FindExtension(containing_type, field_number), output); in FindFileContainingExtension()
371 int field_number, in FindFileContainingExtension() argument
373 return MaybeParse(index_.FindExtension(containing_type, field_number), in FindFileContainingExtension()
418 int field_number, in FindFileContainingExtension() argument
424 pool_.FindExtensionByNumber(extendee, field_number); in FindFileContainingExtension()
496 int field_number, in FindFileContainingExtension() argument
500 containing_type, field_number, output)) { in FindFileContainingExtension()
Dwire_format.h87 static inline int TagSize(int field_number, FieldDescriptor::Type type);
254 virtual void SkipUnknownEnum(int field_number, int value);
284 inline int WireFormat::TagSize(int field_number, FieldDescriptor::Type type) { in TagSize() argument
287 return WireFormatLite::TagSize(field_number, in TagSize()
Dwire_format.cc78 int field_number, int value) { in SkipUnknownEnum() argument
79 unknown_fields_->AddVarint(field_number, value); in SkipUnknownEnum()
389 int field_number = WireFormatLite::GetTagFieldNumber(tag); in ParseAndMergePartial() local
390 field = descriptor->FindFieldByNumber(field_number); in ParseAndMergePartial()
393 if (field == NULL && descriptor->IsExtensionNumber(field_number)) { in ParseAndMergePartial()
395 field = message_reflection->FindKnownExtensionByNumber(field_number); in ParseAndMergePartial()
398 ->FindExtensionByNumber(descriptor, field_number); in ParseAndMergePartial()
Dtext_format.cc1149 string field_number = SimpleItoa(field.number()); in PrintUnknownFields() local
1153 generator.Print(field_number); in PrintUnknownFields()
1163 generator.Print(field_number); in PrintUnknownFields()
1175 generator.Print(field_number); in PrintUnknownFields()
1187 generator.Print(field_number); in PrintUnknownFields()
1221 generator.Print(field_number); in PrintUnknownFields()
Ddescriptor_unittest.cc3626 int field_number, in FindFileContainingExtension() argument
3662 int field_number, in FindFileContainingExtension() argument
3666 containing_type, field_number, output); in FindFileContainingExtension()
3691 int field_number, in FindFileContainingExtension() argument
Ddescriptor.h1142 int field_number) const;
Ddescriptor.cc1265 const Descriptor* containing_type, int field_number) const { in TryFindExtensionInFallbackDatabase()
1270 containing_type->full_name(), field_number, &file_proto)) { in TryFindExtensionInFallbackDatabase()
/external/chromium/chrome/browser/sync/syncable/
Dmodel_type.h101 ModelType GetModelTypeFromExtensionFieldNumber(int field_number);
Dmodel_type.cc65 ModelType GetModelTypeFromExtensionFieldNumber(int field_number) { in GetModelTypeFromExtensionFieldNumber() argument
68 if (GetExtensionFieldNumberFromModelType(model_type) == field_number) in GetModelTypeFromExtensionFieldNumber()
/external/protobuf/src/google/protobuf/compiler/
Dimporter.h103 int field_number,
Dimporter.cc156 const string& containing_type, int field_number, in FindFileContainingExtension() argument
/external/protobuf/python/google/protobuf/
Dreflection.py748 def _BytesForNonRepeatedElement(value, field_number, field_type): argument
763 return fn(field_number, value)