Searched refs:field_number (Results 1 - 25 of 34) sorted by relevance

12

/external/nanopb-c/generator/google/protobuf/internal/
H A Dwire_format.py80 def PackTag(field_number, wire_type):
85 field_number: Expected to be an integer in the range [1, 1 << 29)
90 return (field_number << TAG_TYPE_BITS) | wire_type
95 returns a (field_number, wire_type) tuple.
122 def Int32ByteSize(field_number, int32):
123 return Int64ByteSize(field_number, int32)
130 def Int64ByteSize(field_number, int64):
132 return UInt64ByteSize(field_number, 0xffffffffffffffff & int64)
135 def UInt32ByteSize(field_number, uint32):
136 return UInt64ByteSize(field_number, uint3
[all...]
H A Dencoder.py108 def _TagSize(field_number):
112 return _VarintSize(wire_format.PackTag(field_number, 0))
127 def SpecificSizer(field_number, is_repeated, is_packed):
128 tag_size = _TagSize(field_number)
156 def SpecificSizer(field_number, is_repeated, is_packed):
157 tag_size = _TagSize(field_number)
185 def SpecificSizer(field_number, is_repeated, is_packed):
186 tag_size = _TagSize(field_number)
209 # constructor" is a function that takes (field_number, is_repeated, is_packed)
227 def StringSizer(field_number, is_repeate
[all...]
H A Ddecoder.py62 MakeDecoder(field_number, is_repeated, is_packed, key, new_default)
64 field_number: The field number of the field we want to decode.
190 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default):
210 tag_bytes = encoder.TagBytes(field_number, wire_type)
377 def StringDecoder(field_number, is_repeated, is_packed, key, new_default):
385 tag_bytes = encoder.TagBytes(field_number,
415 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default):
422 tag_bytes = encoder.TagBytes(field_number,
452 def GroupDecoder(field_number, is_repeated, is_packed, key, new_default):
455 end_tag_bytes = encoder.TagBytes(field_number,
[all...]
/external/protobuf/python/google/protobuf/internal/
H A Dwire_format.py80 def PackTag(field_number, wire_type):
85 field_number: Expected to be an integer in the range [1, 1 << 29)
90 return (field_number << TAG_TYPE_BITS) | wire_type
95 returns a (field_number, wire_type) tuple.
122 def Int32ByteSize(field_number, int32):
123 return Int64ByteSize(field_number, int32)
130 def Int64ByteSize(field_number, int64):
132 return UInt64ByteSize(field_number, 0xffffffffffffffff & int64)
135 def UInt32ByteSize(field_number, uint32):
136 return UInt64ByteSize(field_number, uint3
[all...]
H A Dencoder.py111 def _TagSize(field_number):
115 return _VarintSize(wire_format.PackTag(field_number, 0))
130 def SpecificSizer(field_number, is_repeated, is_packed):
131 tag_size = _TagSize(field_number)
159 def SpecificSizer(field_number, is_repeated, is_packed):
160 tag_size = _TagSize(field_number)
188 def SpecificSizer(field_number, is_repeated, is_packed):
189 tag_size = _TagSize(field_number)
212 # constructor" is a function that takes (field_number, is_repeated, is_packed)
230 def StringSizer(field_number, is_repeate
[all...]
H A Dwire_format_test.py49 field_number = 0xabc
51 self.assertEqual((field_number << 3) | tag_type,
52 wire_format.PackTag(field_number, tag_type))
55 self.assertRaises(message.EncodeError, PackTag, field_number, 6)
57 self.assertRaises(message.EncodeError, PackTag, field_number, -1)
63 field_number, wire_type = wire_format.UnpackTag(
65 self.assertEqual(expected_field_number, field_number)
109 for field_number, tag_bytes in ((15, 1), (16, 2), (2047, 2), (2048, 3)):
111 actual_size = byte_size_fn(field_number, value)
113 'byte_size_fn: %s, field_number
[all...]
H A Ddecoder.py62 MakeDecoder(field_number, is_repeated, is_packed, key, new_default)
64 field_number: The field number of the field we want to decode.
199 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default):
219 tag_bytes = encoder.TagBytes(field_number, wire_type)
353 def EnumDecoder(field_number, is_repeated, is_packed, key, new_default):
373 tag_bytes = encoder.TagBytes(field_number,
386 tag_bytes = encoder.TagBytes(field_number, wire_format.WIRETYPE_VARINT)
421 tag_bytes = encoder.TagBytes(field_number,
461 def StringDecoder(field_number, is_repeated, is_packed, key, new_default):
477 tag_bytes = encoder.TagBytes(field_number,
[all...]
/external/protobuf/src/google/protobuf/
H A 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
302 field_number,
329 static inline bool ReadGroup (field_number, input, MessageLite* value);
336 static inline bool ReadGroupNoVirtual(field_number, input,
345 static inline bool ReadGroupNoVirtualNoRecursionDepth(field_number, input,
355 INL static void WriteTag(field_number, WireType type, output);
374 static void WriteInt32 (field_number, int32 value, output);
375 static void WriteInt64 (field_number, int6
479 #undef field_number macro
589 MakeTag(int field_number, WireType type) argument
601 TagSize(int field_number, WireFormatLite::FieldType type) argument
[all...]
H A Dwire_format_lite.cc273 int /* field_number */, int /* value */) {
287 int field_number, int value) {
288 unknown_fields_->WriteVarint32(field_number);
314 int field_number,
330 uint32 tag = WireFormatLite::MakeTag(field_number,
340 void WireFormatLite::WriteInt32(int field_number, int32 value, argument
342 WriteTag(field_number, WIRETYPE_VARINT, output);
345 void WireFormatLite::WriteInt64(int field_number, int64 value, argument
347 WriteTag(field_number, WIRETYPE_VARINT, output);
350 void WireFormatLite::WriteUInt32(int field_number, uint3 argument
286 SkipUnknownEnum( int field_number, int value) argument
312 ReadPackedEnumPreserveUnknowns( io::CodedInputStream* input, int field_number, bool (*is_valid)(int), io::CodedOutputStream* unknown_fields_stream, RepeatedField<int>* values) argument
355 WriteUInt64(int field_number, uint64 value, io::CodedOutputStream* output) argument
360 WriteSInt32(int field_number, int32 value, io::CodedOutputStream* output) argument
365 WriteSInt64(int field_number, int64 value, io::CodedOutputStream* output) argument
370 WriteFixed32(int field_number, uint32 value, io::CodedOutputStream* output) argument
375 WriteFixed64(int field_number, uint64 value, io::CodedOutputStream* output) argument
380 WriteSFixed32(int field_number, int32 value, io::CodedOutputStream* output) argument
385 WriteSFixed64(int field_number, int64 value, io::CodedOutputStream* output) argument
390 WriteFloat(int field_number, float value, io::CodedOutputStream* output) argument
395 WriteDouble(int field_number, double value, io::CodedOutputStream* output) argument
400 WriteBool(int field_number, bool value, io::CodedOutputStream* output) argument
405 WriteEnum(int field_number, int value, io::CodedOutputStream* output) argument
411 WriteString(int field_number, const string& value, io::CodedOutputStream* output) argument
419 WriteStringMaybeAliased( int field_number, const string& value, io::CodedOutputStream* output) argument
428 WriteBytes(int field_number, const string& value, io::CodedOutputStream* output) argument
435 WriteBytesMaybeAliased( int field_number, const string& value, io::CodedOutputStream* output) argument
445 WriteGroup(int field_number, const MessageLite& value, io::CodedOutputStream* output) argument
453 WriteMessage(int field_number, const MessageLite& value, io::CodedOutputStream* output) argument
462 WriteGroupMaybeToArray(int field_number, const MessageLite& value, io::CodedOutputStream* output) argument
477 WriteMessageMaybeToArray(int field_number, const MessageLite& value, io::CodedOutputStream* output) argument
[all...]
H A Dwire_format_lite_inl.h432 inline bool WireFormatLite::ReadGroup(int field_number, argument
439 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) {
468 int field_number, io::CodedInputStream* input,
476 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) {
483 int field_number, io::CodedInputStream* input,
487 input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP));
517 inline void WireFormatLite::WriteTag(int field_number, WireType type, argument
519 output->WriteTag(MakeTag(field_number, type));
583 int field_number, const MessageType_WorkAroundCppLookupDefect& value,
585 WriteTag(field_number, WIRETYPE_START_GROU
467 ReadGroupNoVirtual( int field_number, io::CodedInputStream* input, MessageType_WorkAroundCppLookupDefect* value) argument
482 ReadGroupNoVirtualNoRecursionDepth( int field_number, io::CodedInputStream* input, MessageType_WorkAroundCppLookupDefect* value) argument
582 WriteGroupNoVirtual( int field_number, const MessageType_WorkAroundCppLookupDefect& value, io::CodedOutputStream* output) argument
590 WriteMessageNoVirtual( int field_number, const MessageType_WorkAroundCppLookupDefect& value, io::CodedOutputStream* output) argument
601 WriteTagToArray(int field_number, WireType type, uint8* target) argument
672 WriteInt32ToArray(int field_number, int32 value, uint8* target) argument
678 WriteInt64ToArray(int field_number, int64 value, uint8* target) argument
684 WriteUInt32ToArray(int field_number, uint32 value, uint8* target) argument
690 WriteUInt64ToArray(int field_number, uint64 value, uint8* target) argument
696 WriteSInt32ToArray(int field_number, int32 value, uint8* target) argument
702 WriteSInt64ToArray(int field_number, int64 value, uint8* target) argument
708 WriteFixed32ToArray(int field_number, uint32 value, uint8* target) argument
714 WriteFixed64ToArray(int field_number, uint64 value, uint8* target) argument
720 WriteSFixed32ToArray(int field_number, int32 value, uint8* target) argument
726 WriteSFixed64ToArray(int field_number, int64 value, uint8* target) argument
732 WriteFloatToArray(int field_number, float value, uint8* target) argument
738 WriteDoubleToArray(int field_number, double value, uint8* target) argument
744 WriteBoolToArray(int field_number, bool value, uint8* target) argument
750 WriteEnumToArray(int field_number, int value, uint8* target) argument
757 WriteStringToArray(int field_number, const string& value, uint8* target) argument
767 WriteBytesToArray(int field_number, const string& value, uint8* target) argument
775 WriteGroupToArray(int field_number, const MessageLite& value, uint8* target) argument
782 WriteMessageToArray(int field_number, const MessageLite& value, uint8* target) argument
794 WriteGroupNoVirtualToArray( int field_number, const MessageType_WorkAroundCppLookupDefect& value, uint8* target) argument
803 WriteMessageNoVirtualToArray( int field_number, const MessageType_WorkAroundCppLookupDefect& value, uint8* target) argument
[all...]
H A 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,
H A Dwire_format.h88 static inline int TagSize(int field_number, FieldDescriptor::Type type);
144 uint32 field_number,
252 uint32 field_number,
256 static bool ParseAndMergeMessageSetField(uint32 field_number,
274 virtual void SkipUnknownEnum(int field_number, int value);
304 inline int WireFormat::TagSize(int field_number, FieldDescriptor::Type type) { argument
307 return WireFormatLite::TagSize(field_number,
H A Ddescriptor_database.cc191 int field_number) {
193 by_extension_, std::make_pair(containing_type, field_number), Value());
280 int field_number,
282 return MaybeCopy(index_.FindExtension(containing_type, field_number), output);
371 int field_number,
373 return MaybeParse(index_.FindExtension(containing_type, field_number),
418 int field_number,
424 pool_.FindExtensionByNumber(extendee, field_number);
496 int field_number,
500 containing_type, field_number, outpu
189 FindExtension( const string& containing_type, int field_number) argument
278 FindFileContainingExtension( const string& containing_type, int field_number, FileDescriptorProto* output) argument
369 FindFileContainingExtension( const string& containing_type, int field_number, FileDescriptorProto* output) argument
416 FindFileContainingExtension( const string& containing_type, int field_number, FileDescriptorProto* output) argument
494 FindFileContainingExtension( const string& containing_type, int field_number, FileDescriptorProto* output) argument
[all...]
H A Dwire_format.cc70 int field_number, int value) {
71 unknown_fields_->AddVarint(field_number, value);
155 uint32 field_number,
171 unknown_fields->AddVarint(field_number, value);
402 int field_number = WireFormatLite::GetTagFieldNumber(tag); local
403 field = descriptor->FindFieldByNumber(field_number);
406 if (field == NULL && descriptor->IsExtensionNumber(field_number)) {
408 field = message_reflection->FindKnownExtensionByNumber(field_number);
411 ->FindExtensionByNumber(descriptor, field_number);
434 uint32 field_number,
69 SkipUnknownEnum( int field_number, int value) argument
154 ReadPackedEnumPreserveUnknowns(io::CodedInputStream* input, uint32 field_number, bool (*is_valid)(int), UnknownFieldSet* unknown_fields, RepeatedField<int>* values) argument
433 SkipMessageSetField(io::CodedInputStream* input, uint32 field_number, UnknownFieldSet* unknown_fields) argument
442 ParseAndMergeMessageSetField(uint32 field_number, const FieldDescriptor* field, Message* message, io::CodedInputStream* input) argument
[all...]
H A Dtext_format.cc424 int32 field_number; local
425 if (allow_field_number_ && safe_strto32(field_name, &field_number)) {
426 if (descriptor->IsExtensionNumber(field_number)) {
427 field = reflection->FindKnownExtensionByNumber(field_number);
429 field = descriptor->FindFieldByNumber(field_number);
1887 string field_number = SimpleItoa(field.number()); local
1891 generator.Print(field_number);
1901 generator.Print(field_number);
1913 generator.Print(field_number);
1925 generator.Print(field_number);
[all...]
H A Dextension_set_heavy.cc60 int field_number);
63 io::CodedInputStream* input, int field_number) {
70 unknown_fields_->AddLengthDelimited(field_number), length);
557 int wire_type, int field_number, io::CodedInputStream* input,
561 field_number, static_cast<WireFormatLite::WireType>(wire_type)),
62 SkipMessageSetField( io::CodedInputStream* input, int field_number) argument
556 ParseFieldMaybeLazily( int wire_type, int field_number, io::CodedInputStream* input, ExtensionFinder* extension_finder, MessageSetFieldSkipper* field_skipper) argument
H A Dextension_set.h546 // Returns true and fills field_number and extension if extension is found.
551 int* field_number, ExtensionInfo* extension,
558 bool FindExtensionInfoFromFieldNumber(int wire_type, int field_number,
567 bool ParseFieldWithExtensionInfo(int field_number,
575 bool ParseFieldMaybeLazily(int wire_type, int field_number,
/external/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_database.h63 int field_number,
H A Ddescriptor_database.cc131 const string& containing_type, int field_number,
142 containing_type.size(), field_number));
130 FindFileContainingExtension( const string& containing_type, int field_number, FileDescriptorProto* output) argument
/external/protobuf/src/google/protobuf/util/internal/
H A Dproto_writer.cc113 inline Status WriteInt32(int field_number, const DataPiece& data, argument
117 WireFormatLite::WriteInt32(field_number, i32.ValueOrDie(), stream);
123 inline Status WriteSFixed32(int field_number, const DataPiece& data, argument
127 WireFormatLite::WriteSFixed32(field_number, i32.ValueOrDie(), stream);
133 inline Status WriteSInt32(int field_number, const DataPiece& data, argument
137 WireFormatLite::WriteSInt32(field_number, i32.ValueOrDie(), stream);
143 inline Status WriteFixed32(int field_number, const DataPiece& data, argument
147 WireFormatLite::WriteFixed32(field_number, u32.ValueOrDie(), stream);
153 inline Status WriteUInt32(int field_number, const DataPiece& data, argument
157 WireFormatLite::WriteUInt32(field_number, u3
163 WriteInt64(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
173 WriteSFixed64(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
183 WriteSInt64(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
193 WriteFixed64(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
203 WriteUInt64(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
213 WriteDouble(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
223 WriteFloat(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
233 WriteBool(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
243 WriteBytes(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
253 WriteString(int field_number, const DataPiece& data, CodedOutputStream* stream) argument
263 WriteEnum(int field_number, const DataPiece& data, const google::protobuf::Enum* enum_type, CodedOutputStream* stream) argument
[all...]
/external/nanopb-c/
H A Dpb_encode.h122 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number);
H A Dpb_encode.c459 bool checkreturn pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number) argument
461 uint64_t tag = ((uint64_t)field_number << 3) | wiretype;
/external/protobuf/src/google/protobuf/compiler/
H A Dimporter.h103 int field_number,
H A Dimporter.cc161 const string& containing_type, int field_number,
160 FindFileContainingExtension( const string& containing_type, int field_number, FileDescriptorProto* output) argument
/external/protobuf/objectivec/
H A DGPBCodedOutputStream_PackagePrivate.h75 size_t GPBComputeWireFormatTagSize(int field_number, GPBDataType dataType)

Completed in 2293 milliseconds

12