/external/chromium_org/third_party/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 | 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...] |
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 | 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 | 102 def _TagSize(field_number): 106 return _VarintSize(wire_format.PackTag(field_number, 0)) 121 def SpecificSizer(field_number, is_repeated, is_packed): 122 tag_size = _TagSize(field_number) 150 def SpecificSizer(field_number, is_repeated, is_packed): 151 tag_size = _TagSize(field_number) 179 def SpecificSizer(field_number, is_repeated, is_packed): 180 tag_size = _TagSize(field_number) 203 # constructor" is a function that takes (field_number, is_repeated, is_packed) 221 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 | 62 MakeDecoder(field_number, is_repeated, is_packed, key, new_default) 64 field_number: The field number of the field we want to decode. 183 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): 203 tag_bytes = encoder.TagBytes(field_number, wire_type) 304 def StringDecoder(field_number, is_repeated, is_packed, key, new_default): 312 tag_bytes = encoder.TagBytes(field_number, 342 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): 349 tag_bytes = encoder.TagBytes(field_number, 379 def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): 382 end_tag_bytes = encoder.TagBytes(field_number, [all...] |
/external/protobuf/src/google/protobuf/ |
wire_format_lite.cc | 185 int field_number, int value) { 209 void WireFormatLite::WriteInt32(int field_number, int32 value, 211 WriteTag(field_number, WIRETYPE_VARINT, output); 214 void WireFormatLite::WriteInt64(int field_number, int64 value, 216 WriteTag(field_number, WIRETYPE_VARINT, output); 219 void WireFormatLite::WriteUInt32(int field_number, uint32 value, 221 WriteTag(field_number, WIRETYPE_VARINT, output); 224 void WireFormatLite::WriteUInt64(int field_number, uint64 value, 226 WriteTag(field_number, WIRETYPE_VARINT, output); 229 void WireFormatLite::WriteSInt32(int field_number, int32 value [all...] |
wire_format_lite.h | 154 static uint32 MakeTag(int field_number, WireType type); 160 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 177 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 179 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 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) 443 #undef field_number macro [all...] |
wire_format_lite_inl.h | 344 inline bool WireFormatLite::ReadGroup(int field_number, 351 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 372 inline bool WireFormatLite::ReadGroupNoVirtual(int field_number, 379 if (!input->LastTagWas(MakeTag(field_number, WIRETYPE_END_GROUP))) { 402 inline void WireFormatLite::WriteTag(int field_number, WireType type, 404 output->WriteTag(MakeTag(field_number, type)); 465 inline void WireFormatLite::WriteGroupNoVirtual(int field_number, 468 WriteTag(field_number, WIRETYPE_START_GROUP, output); 470 WriteTag(field_number, WIRETYPE_END_GROUP, output); 473 inline void WireFormatLite::WriteMessageNoVirtual(int field_number, [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); 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, output)) [all...] |
descriptor_database.h | 85 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,
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/ |
wire_format_lite.h | 153 static uint32 MakeTag(int field_number, WireType type); 159 static inline int TagSize(int field_number, WireFormatLite::FieldType type); 185 #define GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG(FIELD_NUMBER, TYPE) \ 187 ((FIELD_NUMBER) << ::google::protobuf::internal::WireFormatLite::kTagTypeBits) \ 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) 485 #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...] |
wire_format_lite.cc | 71 int field_number, int value) { 72 unknown_fields_->AddVarint(field_number, value); 434 void WireFormatLite::WriteInt32(int field_number, int32 value, 436 WriteTag(field_number, WIRETYPE_VARINT, output); 439 void WireFormatLite::WriteInt64(int field_number, int64 value, 441 WriteTag(field_number, WIRETYPE_VARINT, output); 444 void WireFormatLite::WriteUInt32(int field_number, uint32 value, 446 WriteTag(field_number, WIRETYPE_VARINT, output); 449 void WireFormatLite::WriteUInt64(int field_number, uint64 value, 451 WriteTag(field_number, WIRETYPE_VARINT, output) [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); 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, output)) [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,
|
/external/chromium_org/sync/test/fake_server/ |
fake_server_entity.cc | 63 int field_number = GetSpecificsFieldNumberFromModelType(model_type); local 65 field_number, 82 int field_number; local 83 if (token_count != 2 || !base::StringToInt(tokens[0], &field_number)) { 87 return syncer::GetModelTypeFromSpecificsFieldNumber(field_number);
|