Searched refs:wire_type (Results 1 – 7 of 7) sorted by relevance
/external/protobuf/python/google/protobuf/internal/ |
D | encoder.py | 382 def TagBytes(field_number, wire_type): argument 385 return _VarintBytes(wire_format.PackTag(field_number, wire_type)) 392 def _SimpleEncoder(wire_type, encode_value, compute_value_size): argument 417 tag_bytes = TagBytes(field_number, wire_type) 424 tag_bytes = TagBytes(field_number, wire_type) 433 def _ModifiedEncoder(wire_type, encode_value, compute_value_size, modify_value): argument 451 tag_bytes = TagBytes(field_number, wire_type) 458 tag_bytes = TagBytes(field_number, wire_type) 467 def _StructPackEncoder(wire_type, format): argument 489 tag_bytes = TagBytes(field_number, wire_type) [all …]
|
D | wire_format.py | 80 def PackTag(field_number, wire_type): argument 88 if not 0 <= wire_type <= _WIRETYPE_MAX: 89 raise message.EncodeError('Unknown wire type: %d' % wire_type) 90 return (field_number << TAG_TYPE_BITS) | wire_type
|
D | decoder.py | 174 def _SimpleDecoder(wire_type, decode_value): argument 203 tag_bytes = encoder.TagBytes(field_number, wire_type) 233 def _ModifiedDecoder(wire_type, decode_value, modify_value): argument 244 return _SimpleDecoder(wire_type, InnerDecode) 247 def _StructPackDecoder(wire_type, format): argument 269 return _SimpleDecoder(wire_type, InnerDecode) 636 wire_type = local_ord(tag_bytes[0]) & wiretype_mask 637 return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)
|
D | wire_format_test.py | 59 field_number, wire_type = wire_format.UnpackTag( 62 self.assertEqual(expected_wire_type, wire_type)
|
/external/protobuf/src/google/protobuf/ |
D | wire_format_lite.cc | 164 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in SkipMessage() local 166 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) { in SkipMessage()
|
D | wire_format.cc | 151 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in SkipMessage() local 153 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) { in SkipMessage()
|
D | extension_set.cc | 710 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in ParseField() local 717 is_unknown = (wire_type != WireFormatLite::WIRETYPE_LENGTH_DELIMITED); in ParseField() 721 is_unknown = (wire_type != expected_wire_type); in ParseField()
|