Home
last modified time | relevance | path

Searched refs:wire_format (Results 1 – 25 of 86) sorted by relevance

1234

/external/protobuf/python/google/protobuf/internal/
Dwire_format_test.py38 from google.protobuf.internal import wire_format
47 wire_format.PackTag(field_number, tag_type))
48 PackTag = wire_format.PackTag
58 field_number, wire_type = wire_format.UnpackTag(
59 wire_format.PackTag(expected_field_number, expected_wire_type))
63 self.assertRaises(TypeError, wire_format.UnpackTag, None)
64 self.assertRaises(TypeError, wire_format.UnpackTag, 'abc')
65 self.assertRaises(TypeError, wire_format.UnpackTag, 0.0)
66 self.assertRaises(TypeError, wire_format.UnpackTag, object())
69 Z = wire_format.ZigZagEncode
[all …]
Dtype_checkers.py53 from google.protobuf.internal import wire_format
323 _FieldDescriptor.TYPE_DOUBLE: wire_format.DoubleByteSize,
324 _FieldDescriptor.TYPE_FLOAT: wire_format.FloatByteSize,
325 _FieldDescriptor.TYPE_INT64: wire_format.Int64ByteSize,
326 _FieldDescriptor.TYPE_UINT64: wire_format.UInt64ByteSize,
327 _FieldDescriptor.TYPE_INT32: wire_format.Int32ByteSize,
328 _FieldDescriptor.TYPE_FIXED64: wire_format.Fixed64ByteSize,
329 _FieldDescriptor.TYPE_FIXED32: wire_format.Fixed32ByteSize,
330 _FieldDescriptor.TYPE_BOOL: wire_format.BoolByteSize,
331 _FieldDescriptor.TYPE_STRING: wire_format.StringByteSize,
[all …]
Ddecoder.py88 from google.protobuf.internal import wire_format
329 return _SimpleDecoder(wire_format.WIRETYPE_FIXED32, InnerDecode)
369 return _SimpleDecoder(wire_format.WIRETYPE_FIXED64, InnerDecode)
408 wire_format.WIRETYPE_VARINT)
415 field_number, wire_format.WIRETYPE_VARINT, element)
429 tag_bytes = encoder.TagBytes(field_number, wire_format.WIRETYPE_VARINT)
460 field_number, wire_format.WIRETYPE_VARINT, element)
499 wire_format.WIRETYPE_VARINT)
505 field_number, wire_format.WIRETYPE_VARINT, enum_value)
515 wire_format.WIRETYPE_VARINT, _DecodeSignedVarint32)
[all …]
Dencoder.py71 from google.protobuf.internal import wire_format
113 return _VarintSize(wire_format.PackTag(field_number, 0))
220 _SignedVarintSize, wire_format.ZigZagEncode)
423 return bytes(_VarintBytes(wire_format.PackTag(field_number, wire_type)))
443 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
477 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
518 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
584 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
626 wire_format.WIRETYPE_VARINT, _EncodeSignedVarint, _SignedVarintSize)
629 wire_format.WIRETYPE_VARINT, _EncodeVarint, _VarintSize)
[all …]
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Dwire_format_test.py38 from google.protobuf.internal import wire_format
47 wire_format.PackTag(field_number, tag_type))
48 PackTag = wire_format.PackTag
58 field_number, wire_type = wire_format.UnpackTag(
59 wire_format.PackTag(expected_field_number, expected_wire_type))
63 self.assertRaises(TypeError, wire_format.UnpackTag, None)
64 self.assertRaises(TypeError, wire_format.UnpackTag, 'abc')
65 self.assertRaises(TypeError, wire_format.UnpackTag, 0.0)
66 self.assertRaises(TypeError, wire_format.UnpackTag, object())
69 Z = wire_format.ZigZagEncode
[all …]
Dtype_checkers.py53 from google.protobuf.internal import wire_format
323 _FieldDescriptor.TYPE_DOUBLE: wire_format.DoubleByteSize,
324 _FieldDescriptor.TYPE_FLOAT: wire_format.FloatByteSize,
325 _FieldDescriptor.TYPE_INT64: wire_format.Int64ByteSize,
326 _FieldDescriptor.TYPE_UINT64: wire_format.UInt64ByteSize,
327 _FieldDescriptor.TYPE_INT32: wire_format.Int32ByteSize,
328 _FieldDescriptor.TYPE_FIXED64: wire_format.Fixed64ByteSize,
329 _FieldDescriptor.TYPE_FIXED32: wire_format.Fixed32ByteSize,
330 _FieldDescriptor.TYPE_BOOL: wire_format.BoolByteSize,
331 _FieldDescriptor.TYPE_STRING: wire_format.StringByteSize,
[all …]
Ddecoder.py88 from google.protobuf.internal import wire_format
329 return _SimpleDecoder(wire_format.WIRETYPE_FIXED32, InnerDecode)
369 return _SimpleDecoder(wire_format.WIRETYPE_FIXED64, InnerDecode)
408 wire_format.WIRETYPE_VARINT)
415 field_number, wire_format.WIRETYPE_VARINT, element)
429 tag_bytes = encoder.TagBytes(field_number, wire_format.WIRETYPE_VARINT)
460 field_number, wire_format.WIRETYPE_VARINT, element)
499 wire_format.WIRETYPE_VARINT)
505 field_number, wire_format.WIRETYPE_VARINT, enum_value)
515 wire_format.WIRETYPE_VARINT, _DecodeSignedVarint32)
[all …]
Dencoder.py71 from google.protobuf.internal import wire_format
113 return _VarintSize(wire_format.PackTag(field_number, 0))
220 _SignedVarintSize, wire_format.ZigZagEncode)
423 return bytes(_VarintBytes(wire_format.PackTag(field_number, wire_type)))
443 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
477 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
518 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
584 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
626 wire_format.WIRETYPE_VARINT, _EncodeSignedVarint, _SignedVarintSize)
629 wire_format.WIRETYPE_VARINT, _EncodeVarint, _VarintSize)
[all …]
/external/chromium-trace/catapult/common/py_trace_event/third_party/protobuf/
Dencoder.py34 import wire_format
115 return _VarintBytes(wire_format.PackTag(field_number, wire_type))
131 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
200 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
237 wire_format.WIRETYPE_VARINT, _EncodeSignedVarint, _SignedVarintSize)
240 wire_format.WIRETYPE_VARINT, _EncodeVarint, _VarintSize)
242 FloatEncoder = _FloatingPointEncoder(wire_format.WIRETYPE_FIXED32, '<f')
244 DoubleEncoder = _FloatingPointEncoder(wire_format.WIRETYPE_FIXED64, '<d')
253 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
265 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_VARINT)
[all …]
/external/rust/crates/protobuf/2.27.1/src/
Dcoded_output_stream.rs12 use crate::wire_format;
261 wire_type: wire_format::WireType, in write_tag()
263 self.write_raw_varint32(wire_format::Tag::make(field_number, wire_type).value()) in write_tag()
330 self.write_tag(field_number, wire_format::WireTypeFixed32)?; in write_float()
337 self.write_tag(field_number, wire_format::WireTypeFixed64)?; in write_double()
422 self.write_tag(field_number, wire_format::WireTypeVarint)?; in write_uint64()
429 self.write_tag(field_number, wire_format::WireTypeVarint)?; in write_uint32()
436 self.write_tag(field_number, wire_format::WireTypeVarint)?; in write_int64()
443 self.write_tag(field_number, wire_format::WireTypeVarint)?; in write_int32()
450 self.write_tag(field_number, wire_format::WireTypeVarint)?; in write_sint64()
[all …]
Dunknown.rs11 use crate::wire_format;
32 pub fn wire_type(&self) -> wire_format::WireType { in wire_type()
73 pub fn wire_type(&self) -> wire_format::WireType { in wire_type()
75 UnknownValueRef::Fixed32(_) => wire_format::WireTypeFixed32, in wire_type()
76 UnknownValueRef::Fixed64(_) => wire_format::WireTypeFixed64, in wire_type()
77 UnknownValueRef::Varint(_) => wire_format::WireTypeVarint, in wire_type()
78 UnknownValueRef::LengthDelimited(_) => wire_format::WireTypeLengthDelimited, in wire_type()
Dcoded_input_stream.rs25 use crate::wire_format;
280 pub fn read_tag(&mut self) -> ProtobufResult<wire_format::Tag> { in read_tag()
282 match wire_format::Tag::new(v) { in read_tag()
290 pub fn read_tag_unpack(&mut self) -> ProtobufResult<(u32, wire_format::WireType)> { in read_tag_unpack()
579 wire_type: wire_format::WireType, in read_unknown()
582 wire_format::WireTypeVarint => { in read_unknown()
585 wire_format::WireTypeFixed64 => self.read_fixed64().map(|v| UnknownValue::Fixed64(v)), in read_unknown()
586 wire_format::WireTypeFixed32 => self.read_fixed32().map(|v| UnknownValue::Fixed32(v)), in read_unknown()
587 wire_format::WireTypeLengthDelimited => { in read_unknown()
599 pub fn skip_field(&mut self, wire_type: wire_format::WireType) -> ProtobufResult<()> { in skip_field()
Ddescriptor.rs111 os.write_tag(1, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
672 my_size += crate::rt::value_size(10, *value, crate::wire_format::WireTypeVarint); in compute_size()
675 my_size += crate::rt::value_size(11, *value, crate::wire_format::WireTypeVarint); in compute_size()
726 os.write_tag(4, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
731 os.write_tag(5, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
736 os.write_tag(6, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
741 os.write_tag(7, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
746 os.write_tag(8, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
751 os.write_tag(9, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
1341 os.write_tag(2, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
[all …]
Dplugin.rs152 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
159 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
166 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
188 my_size += crate::rt::value_size(1, v, crate::wire_format::WireTypeVarint); in compute_size()
191 my_size += crate::rt::value_size(2, v, crate::wire_format::WireTypeVarint); in compute_size()
194 my_size += crate::rt::value_size(3, v, crate::wire_format::WireTypeVarint); in compute_size()
527 os.write_tag(15, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
532 os.write_tag(3, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
754 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
779 my_size += crate::rt::value_size(2, v, crate::wire_format::WireTypeVarint); in compute_size()
[all …]
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dperfetto_proto_classes.py19 import wire_format
38 tag = encoder.TagBytes(5, wire_format.WIRETYPE_LENGTH_DELIMITED)
43 tag = encoder.TagBytes(6, wire_format.WIRETYPE_LENGTH_DELIMITED)
54 tag = encoder.TagBytes(11, wire_format.WIRETYPE_LENGTH_DELIMITED)
59 tag = encoder.TagBytes(12, wire_format.WIRETYPE_LENGTH_DELIMITED)
67 tag = encoder.TagBytes(44, wire_format.WIRETYPE_LENGTH_DELIMITED)
72 tag = encoder.TagBytes(48, wire_format.WIRETYPE_LENGTH_DELIMITED)
91 tag = encoder.TagBytes(1, wire_format.WIRETYPE_LENGTH_DELIMITED)
96 tag = encoder.TagBytes(2, wire_format.WIRETYPE_LENGTH_DELIMITED)
150 tag = encoder.TagBytes(2, wire_format.WIRETYPE_LENGTH_DELIMITED)
[all …]
/external/crosvm/common/p9/src/protocol/
Dmod.rs6 mod wire_format; module
9 pub use self::wire_format::Data;
10 pub use self::wire_format::WireFormat;
/external/crosvm/metrics/out/
Devent_details.rs215 os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
220 os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
225 os.write_tag(19, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
506 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
511 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
516 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
841 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
848 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
855 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
862 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
[all …]
/external/protobuf/python/google/protobuf/
Dunknown_fields.py48 from google.protobuf.internal import wire_format # pylint: disable=g-import-not-at-top
95 InternalAdd(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED, data)
100 field_number, wire_type = wire_format.UnpackTag(tag)
/external/rust/crates/protobuf/2.27.1/src/well_known_types/
Dduration.rs87 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
94 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
113 my_size += crate::rt::value_size(1, self.seconds, crate::wire_format::WireTypeVarint); in compute_size()
116 my_size += crate::rt::value_size(2, self.nanos, crate::wire_format::WireTypeVarint); in compute_size()
Dtimestamp.rs87 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
94 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
113 my_size += crate::rt::value_size(1, self.seconds, crate::wire_format::WireTypeVarint); in compute_size()
116 my_size += crate::rt::value_size(2, self.nanos, crate::wire_format::WireTypeVarint); in compute_size()
Dstruct_pb.rs456 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
462 if wire_type != crate::wire_format::WireTypeFixed64 { in merge_from()
468 if wire_type != crate::wire_format::WireTypeLengthDelimited { in merge_from()
474 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
480 if wire_type != crate::wire_format::WireTypeLengthDelimited { in merge_from()
486 if wire_type != crate::wire_format::WireTypeLengthDelimited { in merge_from()
548 os.write_tag(5, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
553 os.write_tag(6, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
754 os.write_tag(1, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
Dtype_pb.rs285 os.write_tag(2, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
293 os.write_tag(4, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
298 os.write_tag(5, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
669 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
682 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
689 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
723 my_size += crate::rt::value_size(3, self.number, crate::wire_format::WireTypeVarint); in compute_size()
732 … my_size += crate::rt::value_size(7, self.oneof_index, crate::wire_format::WireTypeVarint); in compute_size()
775 os.write_tag(9, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
1305 os.write_tag(2, crate::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
[all …]
/external/rust/crates/protobuf/src/rt/
Dunknown_or_group.rs4 use crate::wire_format::Tag;
5 use crate::wire_format::WireType;
/external/crosvm/system_api/src/protos/
Dkey.rs116 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
123 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
130 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
313 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
497 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
522 my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); in compute_size()
849 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
856 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
1210 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
1248 my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); in compute_size()
[all …]
Dauth_factor.rs1241 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { in merge_from()
1247 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { in merge_from()
1253 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { in merge_from()
1259 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { in merge_from()
1265 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { in merge_from()
1271 if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { in merge_from()
1325 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
1330 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
1335 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
1340 os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; in write_to_with_cached_sizes()
[all …]

1234