Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/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.py108 def _TagSize(field_number): argument
112 return _VarintSize(wire_format.PackTag(field_number, 0))
127 def SpecificSizer(field_number, is_repeated, is_packed): argument
128 tag_size = _TagSize(field_number)
156 def SpecificSizer(field_number, is_repeated, is_packed): argument
157 tag_size = _TagSize(field_number)
185 def SpecificSizer(field_number, is_repeated, is_packed): argument
186 tag_size = _TagSize(field_number)
227 def StringSizer(field_number, is_repeated, is_packed): argument
230 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.py190 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): argument
210 tag_bytes = encoder.TagBytes(field_number, wire_type)
377 def StringDecoder(field_number, is_repeated, is_packed, key, new_default): argument
385 tag_bytes = encoder.TagBytes(field_number,
415 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): argument
422 tag_bytes = encoder.TagBytes(field_number,
452 def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): argument
455 end_tag_bytes = encoder.TagBytes(field_number,
461 tag_bytes = encoder.TagBytes(field_number,
499 def MessageDecoder(field_number, is_repeated, is_packed, key, new_default): argument
[all …]
/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()
/external/chromium_org/third_party/protobuf/src/google/protobuf/
Dwire_format_lite.h153 static uint32 MakeTag(int field_number, WireType type);
159 static inline int TagSize(int field_number, WireFormatLite::FieldType type);
277 #define field_number int field_number macro
336 static inline bool ReadGroup (field_number, input, MessageLite* value);
343 static inline bool ReadGroupNoVirtual(field_number, input,
351 static inline void WriteTag(field_number, WireType type, output) INL;
370 static void WriteInt32 (field_number, int32 value, output);
371 static void WriteInt64 (field_number, int64 value, output);
372 static void WriteUInt32 (field_number, uint32 value, output);
373 static void WriteUInt64 (field_number, uint64 value, output);
[all …]
Dwire_format_lite.cc71 int field_number, int value) { in SkipUnknownEnum() argument
72 unknown_fields_->AddVarint(field_number, value); in SkipUnknownEnum()
434 void WireFormatLite::WriteInt32(int field_number, int32 value, in WriteInt32() argument
436 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt32()
439 void WireFormatLite::WriteInt64(int field_number, int64 value, in WriteInt64() argument
441 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt64()
444 void WireFormatLite::WriteUInt32(int field_number, uint32 value, in WriteUInt32() argument
446 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt32()
449 void WireFormatLite::WriteUInt64(int field_number, uint64 value, in WriteUInt64() argument
451 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt64()
[all …]
Dwire_format_lite_inl.h343 inline bool WireFormatLite::ReadGroup(int field_number, in ReadGroup() argument
350 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroup()
382 int field_number, io::CodedInputStream* input, in ReadGroupNoVirtual() argument
390 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroupNoVirtual()
415 inline void WireFormatLite::WriteTag(int field_number, WireType type, in WriteTag() argument
417 output->WriteTag(MakeTag(field_number, type)); in WriteTag()
481 int field_number, const MessageType_WorkAroundCppLookupDefect& value, in WriteGroupNoVirtual() argument
483 WriteTag(field_number, WIRETYPE_START_GROUP, output); in WriteGroupNoVirtual()
485 WriteTag(field_number, WIRETYPE_END_GROUP, output); in WriteGroupNoVirtual()
489 int field_number, const MessageType_WorkAroundCppLookupDefect& value, in WriteMessageNoVirtual() argument
[all …]
Ddescriptor_database.h86 int field_number,
149 int field_number,
175 Value FindExtension(const string& containing_type, int field_number);
294 int field_number,
323 int field_number,
352 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.h88 static inline int TagSize(int field_number, FieldDescriptor::Type type);
221 inline int WireFormat::TagSize(int field_number, FieldDescriptor::Type type) { in TagSize() argument
224 return WireFormatLite::TagSize(field_number, in TagSize()
/external/chromium_org/sync/engine/
Dsync_directory_update_handler.cc137 int field_number = progress_marker.data_type_id(); in UpdateProgressMarker() local
138 ModelType model_type = GetModelTypeFromSpecificsFieldNumber(field_number); in UpdateProgressMarker()
143 << field_number; in UpdateProgressMarker()
Dsyncer_proto_util.cc163 int field_number = response.migrated_data_type_id(i); in GetTypesToMigrate() local
164 ModelType model_type = GetModelTypeFromSpecificsFieldNumber(field_number); in GetTypesToMigrate()
166 DLOG(WARNING) << "Unknown field number " << field_number; in GetTypesToMigrate()
188 int field_number = error.error_data_type_ids(i); in ConvertErrorPBToLocalType() local
190 GetModelTypeFromSpecificsFieldNumber(field_number); in ConvertErrorPBToLocalType()
192 DLOG(WARNING) << "Unknown field number " << field_number; in ConvertErrorPBToLocalType()
Ddownload.cc128 int field_number = gu_response.new_progress_marker(i).data_type_id(); in PartitionProgressMarkersByType() local
129 ModelType model_type = GetModelTypeFromSpecificsFieldNumber(field_number); in PartitionProgressMarkersByType()
131 DLOG(WARNING) << "Unknown field number " << field_number; in PartitionProgressMarkersByType()
/external/chromium_org/sync/syncable/
Dmodel_type_unittest.cc79 int field_number = GetSpecificsFieldNumberFromModelType(iter.Get()); in TEST_F() local
81 GetModelTypeFromSpecificsFieldNumber(field_number)); in TEST_F()

12