/external/nanopb-c/generator/google/protobuf/internal/ |
wire_format.py | 80 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, uint32 [all...] |
encoder.py | 108 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_repeated, is_packed) [all...] |
decoder.py | 62 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/ |
wire_format.py | 80 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, uint32 [all...] |
encoder.py | 114 def _TagSize(field_number): 118 return _VarintSize(wire_format.PackTag(field_number, 0)) 133 def SpecificSizer(field_number, is_repeated, is_packed): 134 tag_size = _TagSize(field_number) 162 def SpecificSizer(field_number, is_repeated, is_packed): 163 tag_size = _TagSize(field_number) 191 def SpecificSizer(field_number, is_repeated, is_packed): 192 tag_size = _TagSize(field_number) 215 # constructor" is a function that takes (field_number, is_repeated, is_packed) 233 def StringSizer(field_number, is_repeated, is_packed) [all...] |
wire_format_test.py | 45 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) 109 'byte_size_fn: %s, field_number: %d, value: %r\n [all...] |
decoder.py | 66 MakeDecoder(field_number, is_repeated, is_packed, key, new_default) 68 field_number: The field number of the field we want to decode. 207 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): 227 tag_bytes = encoder.TagBytes(field_number, wire_type) 371 def EnumDecoder(field_number, is_repeated, is_packed, key, new_default): 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): 495 tag_bytes = encoder.TagBytes(field_number, [all...] |
/external/protobuf/src/google/protobuf/ |
wire_format_lite.cc | 263 int /* field_number */, int /* value */) { 277 int field_number, int value) { 278 unknown_fields_->WriteVarint32(field_number); 302 void WireFormatLite::WriteInt32(int field_number, int32 value, 304 WriteTag(field_number, WIRETYPE_VARINT, output); 307 void WireFormatLite::WriteInt64(int field_number, int64 value, 309 WriteTag(field_number, WIRETYPE_VARINT, output); 312 void WireFormatLite::WriteUInt32(int field_number, uint32 value, 314 WriteTag(field_number, WIRETYPE_VARINT, output); 317 void WireFormatLite::WriteUInt64(int field_number, uint64 value [all...] |
wire_format_lite.h | 152 static uint32 MakeTag(int field_number, WireType type); 158 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 186 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 188 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 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) 456 #undef field_number macro [all...] |
wire_format_lite_inl.h | 429 inline bool WireFormatLite::ReadGroup(int field_number, 436 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))) { 501 inline void WireFormatLite::WriteTag(int field_number, WireType type, 503 output->WriteTag(MakeTag(field_number, type)); 567 int field_number, const MessageType_WorkAroundCppLookupDefect& value, 569 WriteTag(field_number, WIRETYPE_START_GROUP, output); 571 WriteTag(field_number, WIRETYPE_END_GROUP, output); 575 int field_number, const MessageType_WorkAroundCppLookupDefect& value [all...] |
descriptor_database.cc | 191 int field_number) { 193 make_pair(containing_type, field_number), 281 int field_number, 283 return MaybeCopy(index_.FindExtension(containing_type, field_number), output); 372 int field_number, 374 return MaybeParse(index_.FindExtension(containing_type, field_number), 419 int field_number, 425 pool_.FindExtensionByNumber(extendee, field_number); 497 int field_number, 501 containing_type, field_number, output)) [all...] |
descriptor_database.h | 86 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,
|
wire_format.h | 88 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) { 308 return WireFormatLite::TagSize(field_number,
|
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/ |
wire_format_lite.h | 152 static uint32 MakeTag(int field_number, WireType type); 158 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 186 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 188 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 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) 479 #undef field_number macro [all...] |
wire_format_lite_inl.h | 432 inline bool WireFormatLite::ReadGroup(int field_number, 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, 519 output->WriteTag(MakeTag(field_number, type)); 583 int field_number, const MessageType_WorkAroundCppLookupDefect& value, 585 WriteTag(field_number, WIRETYPE_START_GROUP, output) [all...] |
wire_format.h | 88 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) { 307 return WireFormatLite::TagSize(field_number,
|
/prebuilts/misc/darwin-x86_64/protobuf2.5/include/google/protobuf/ |
wire_format_lite.h | 152 static uint32 MakeTag(int field_number, WireType type); 158 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 175 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 177 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 233 #define field_number int field_number macro 292 static inline bool ReadGroup (field_number, input, MessageLite* value); 299 static inline bool ReadGroupNoVirtual(field_number, input, 307 static inline void WriteTag(field_number, WireType type, output) INL; 326 static void WriteInt32 (field_number, int32 value, output) 441 #undef field_number macro [all...] |
wire_format_lite_inl.h | 343 inline bool WireFormatLite::ReadGroup(int field_number, 350 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 382 int field_number, io::CodedInputStream* input, 390 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 415 inline void WireFormatLite::WriteTag(int field_number, WireType type, 417 output->WriteTag(MakeTag(field_number, type)); 481 int field_number, const MessageType_WorkAroundCppLookupDefect& value, 483 WriteTag(field_number, WIRETYPE_START_GROUP, output); 485 WriteTag(field_number, WIRETYPE_END_GROUP, output); 489 int field_number, const MessageType_WorkAroundCppLookupDefect& value [all...] |
descriptor_database.h | 86 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,
|
/prebuilts/misc/linux-x86_64/protobuf2.5/include/google/protobuf/ |
wire_format_lite.h | 152 static uint32 MakeTag(int field_number, WireType type); 158 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 175 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 177 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 233 #define field_number int field_number macro 292 static inline bool ReadGroup (field_number, input, MessageLite* value); 299 static inline bool ReadGroupNoVirtual(field_number, input, 307 static inline void WriteTag(field_number, WireType type, output) INL; 326 static void WriteInt32 (field_number, int32 value, output) 441 #undef field_number macro [all...] |
wire_format_lite_inl.h | 343 inline bool WireFormatLite::ReadGroup(int field_number, 350 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 382 int field_number, io::CodedInputStream* input, 390 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 415 inline void WireFormatLite::WriteTag(int field_number, WireType type, 417 output->WriteTag(MakeTag(field_number, type)); 481 int field_number, const MessageType_WorkAroundCppLookupDefect& value, 483 WriteTag(field_number, WIRETYPE_START_GROUP, output); 485 WriteTag(field_number, WIRETYPE_END_GROUP, output); 489 int field_number, const MessageType_WorkAroundCppLookupDefect& value [all...] |
/prebuilts/misc/windows/protobuf2.5/include/google/protobuf/ |
wire_format_lite.h | 152 static uint32 MakeTag(int field_number, WireType type); 158 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 175 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 177 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 233 #define field_number int field_number macro 292 static inline bool ReadGroup (field_number, input, MessageLite* value); 299 static inline bool ReadGroupNoVirtual(field_number, input, 307 static inline void WriteTag(field_number, WireType type, output) INL; 326 static void WriteInt32 (field_number, int32 value, output) 441 #undef field_number macro [all...] |
wire_format_lite_inl.h | 343 inline bool WireFormatLite::ReadGroup(int field_number, 350 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 382 int field_number, io::CodedInputStream* input, 390 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 415 inline void WireFormatLite::WriteTag(int field_number, WireType type, 417 output->WriteTag(MakeTag(field_number, type)); 481 int field_number, const MessageType_WorkAroundCppLookupDefect& value, 483 WriteTag(field_number, WIRETYPE_START_GROUP, output); 485 WriteTag(field_number, WIRETYPE_END_GROUP, output); 489 int field_number, const MessageType_WorkAroundCppLookupDefect& value [all...] |
/prebuilts/tools/linux-x86_64/protoc/include/google/protobuf/ |
wire_format_lite.h | 152 static uint32 MakeTag(int field_number, WireType type); 158 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 175 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 177 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 233 #define field_number int field_number macro 292 static inline bool ReadGroup (field_number, input, MessageLite* value); 299 static inline bool ReadGroupNoVirtual(field_number, input, 307 static inline void WriteTag(field_number, WireType type, output) INL; 326 static void WriteInt32 (field_number, int32 value, output) 441 #undef field_number macro [all...] |
wire_format_lite_inl.h | 343 inline bool WireFormatLite::ReadGroup(int field_number, 350 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 382 int field_number, io::CodedInputStream* input, 390 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 415 inline void WireFormatLite::WriteTag(int field_number, WireType type, 417 output->WriteTag(MakeTag(field_number, type)); 481 int field_number, const MessageType_WorkAroundCppLookupDefect& value, 483 WriteTag(field_number, WIRETYPE_START_GROUP, output); 485 WriteTag(field_number, WIRETYPE_END_GROUP, output); 489 int field_number, const MessageType_WorkAroundCppLookupDefect& value [all...] |