Home
last modified time | relevance | path

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

12

/external/nanopb-c/generator/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 …]
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 …]
Dpython_message.py716 def _BytesForNonRepeatedElement(value, field_number, field_type): argument
731 return fn(field_number, value)
/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.py114 def _TagSize(field_number): argument
118 return _VarintSize(wire_format.PackTag(field_number, 0))
133 def SpecificSizer(field_number, is_repeated, is_packed): argument
134 tag_size = _TagSize(field_number)
162 def SpecificSizer(field_number, is_repeated, is_packed): argument
163 tag_size = _TagSize(field_number)
191 def SpecificSizer(field_number, is_repeated, is_packed): argument
192 tag_size = _TagSize(field_number)
233 def StringSizer(field_number, is_repeated, is_packed): argument
236 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.py207 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): argument
227 tag_bytes = encoder.TagBytes(field_number, wire_type)
371 def EnumDecoder(field_number, is_repeated, is_packed, key, new_default): argument
391 tag_bytes = encoder.TagBytes(field_number,
404 tag_bytes = encoder.TagBytes(field_number, wire_format.WIRETYPE_VARINT)
439 tag_bytes = encoder.TagBytes(field_number,
479 def StringDecoder(field_number, is_repeated, is_packed, key, new_default): argument
495 tag_bytes = encoder.TagBytes(field_number,
525 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): argument
532 tag_bytes = encoder.TagBytes(field_number,
[all …]
Dpython_message.py762 def _BytesForNonRepeatedElement(value, field_number, field_type): argument
777 return fn(field_number, value)
/external/protobuf/src/google/protobuf/
Dwire_format_lite.h152 static uint32 MakeTag(int field_number, WireType type);
158 static inline int TagSize(int field_number, WireFormatLite::FieldType type);
244 #define field_number int field_number_arg macro
303 static inline bool ReadGroup (field_number, input, MessageLite* value);
310 static inline bool ReadGroupNoVirtual(field_number, input,
318 static inline void WriteTag(field_number, WireType type, output) INL;
337 static void WriteInt32 (field_number, int32 value, output);
338 static void WriteInt64 (field_number, int64 value, output);
339 static void WriteUInt32 (field_number, uint32 value, output);
340 static void WriteUInt64 (field_number, uint64 value, output);
[all …]
Dwire_format_lite.cc277 int field_number, int value) { in SkipUnknownEnum() argument
278 unknown_fields_->WriteVarint32(field_number); in SkipUnknownEnum()
302 void WireFormatLite::WriteInt32(int field_number, int32 value, in WriteInt32() argument
304 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt32()
307 void WireFormatLite::WriteInt64(int field_number, int64 value, in WriteInt64() argument
309 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt64()
312 void WireFormatLite::WriteUInt32(int field_number, uint32 value, in WriteUInt32() argument
314 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt32()
317 void WireFormatLite::WriteUInt64(int field_number, uint64 value, in WriteUInt64() argument
319 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt64()
[all …]
Dwire_format_lite_inl.h429 inline bool WireFormatLite::ReadGroup(int field_number, in ReadGroup() argument
436 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroup()
468 int field_number, io::CodedInputStream* input, in ReadGroupNoVirtual() argument
476 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { in ReadGroupNoVirtual()
501 inline void WireFormatLite::WriteTag(int field_number, WireType type, in WriteTag() argument
503 output->WriteTag(MakeTag(field_number, type)); in WriteTag()
567 int field_number, const MessageType_WorkAroundCppLookupDefect& value, in WriteGroupNoVirtual() argument
569 WriteTag(field_number, WIRETYPE_START_GROUP, output); in WriteGroupNoVirtual()
571 WriteTag(field_number, WIRETYPE_END_GROUP, output); in WriteGroupNoVirtual()
575 int field_number, const MessageType_WorkAroundCppLookupDefect& value, in WriteMessageNoVirtual() argument
[all …]
Ddescriptor_database.h86 int field_number,
150 int field_number,
176 Value FindExtension(const string& containing_type, int field_number);
295 int field_number,
324 int field_number,
353 int field_number,
Dwire_format.h88 static inline int TagSize(int field_number, FieldDescriptor::Type type);
251 uint32 field_number,
255 static bool ParseAndMergeMessageSetField(uint32 field_number,
275 virtual void SkipUnknownEnum(int field_number, int value);
305 inline int WireFormat::TagSize(int field_number, FieldDescriptor::Type type) { in TagSize() argument
308 return WireFormatLite::TagSize(field_number, in TagSize()
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()
372 int field_number, in FindFileContainingExtension() argument
374 return MaybeParse(index_.FindExtension(containing_type, field_number), in FindFileContainingExtension()
419 int field_number, in FindFileContainingExtension() argument
425 pool_.FindExtensionByNumber(extendee, field_number); in FindFileContainingExtension()
497 int field_number, in FindFileContainingExtension() argument
501 containing_type, field_number, output)) { in FindFileContainingExtension()
Dwire_format.cc78 int field_number, int value) { in SkipUnknownEnum() argument
79 unknown_fields_->AddVarint(field_number, value); in SkipUnknownEnum()
385 int field_number = WireFormatLite::GetTagFieldNumber(tag); in ParseAndMergePartial() local
386 field = descriptor->FindFieldByNumber(field_number); in ParseAndMergePartial()
389 if (field == NULL && descriptor->IsExtensionNumber(field_number)) { in ParseAndMergePartial()
391 field = message_reflection->FindKnownExtensionByNumber(field_number); in ParseAndMergePartial()
394 ->FindExtensionByNumber(descriptor, field_number); in ParseAndMergePartial()
417 uint32 field_number, in SkipMessageSetField() argument
422 unknown_fields->AddLengthDelimited(field_number), length); in SkipMessageSetField()
425 bool WireFormat::ParseAndMergeMessageSetField(uint32 field_number, in ParseAndMergeMessageSetField() argument
[all …]
Dtext_format.cc379 int32 field_number; in ConsumeField() local
380 if (allow_field_number_ && safe_strto32(field_name, &field_number)) { in ConsumeField()
381 if (descriptor->IsExtensionNumber(field_number)) { in ConsumeField()
382 field = reflection->FindKnownExtensionByNumber(field_number); in ConsumeField()
384 field = descriptor->FindFieldByNumber(field_number); in ConsumeField()
1654 string field_number = SimpleItoa(field.number()); in PrintUnknownFields() local
1658 generator.Print(field_number); in PrintUnknownFields()
1668 generator.Print(field_number); in PrintUnknownFields()
1680 generator.Print(field_number); in PrintUnknownFields()
1692 generator.Print(field_number); in PrintUnknownFields()
[all …]
Dextension_set_heavy.cc60 int field_number);
63 io::CodedInputStream* input, int field_number) { in SkipMessageSetField() argument
70 unknown_fields_->AddLengthDelimited(field_number), length); in SkipMessageSetField()
537 int wire_type, int field_number, io::CodedInputStream* input, in ParseFieldMaybeLazily() argument
541 field_number, static_cast<WireFormatLite::WireType>(wire_type)), in ParseFieldMaybeLazily()
Dextension_set.h532 int* field_number, ExtensionInfo* extension,
539 bool FindExtensionInfoFromFieldNumber(int wire_type, int field_number,
548 bool ParseFieldWithExtensionInfo(int field_number,
556 bool ParseFieldMaybeLazily(int wire_type, int field_number,
Dextension_set.cc969 uint32 tag, ExtensionFinder* extension_finder, int* field_number, in FindExtensionInfoFromTag() argument
971 *field_number = WireFormatLite::GetTagFieldNumber(tag); in FindExtensionInfoFromTag()
973 return FindExtensionInfoFromFieldNumber(wire_type, *field_number, in FindExtensionInfoFromTag()
979 int wire_type, int field_number, ExtensionFinder* extension_finder, in FindExtensionInfoFromFieldNumber() argument
981 if (!extension_finder->Find(field_number, extension)) { in FindExtensionInfoFromFieldNumber()
Dgenerated_message_reflection.cc1403 uint32 field_number = GetOneofCase(message, oneof_descriptor); in GetOneofFieldDescriptor() local
1404 if (field_number == 0) { in GetOneofFieldDescriptor()
1407 return descriptor_->FindFieldByNumber(field_number); in GetOneofFieldDescriptor()
/external/nanopb-c/
Dpb_encode.h122 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number);
Dpb_encode.c459 bool checkreturn pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number) in pb_encode_tag() argument
461 uint64_t tag = ((uint64_t)field_number << 3) | wiretype; in pb_encode_tag()
/external/protobuf/src/google/protobuf/compiler/
Dimporter.h103 int field_number,
Dimporter.cc158 const string& containing_type, int field_number, in FindFileContainingExtension() argument

12