Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/internal/
Dwire_format_test.py39 from google.protobuf.internal import wire_format
48 wire_format.PackTag(field_number, tag_type))
49 PackTag = wire_format.PackTag
59 field_number, wire_type = wire_format.UnpackTag(
60 wire_format.PackTag(expected_field_number, expected_wire_type))
64 self.assertRaises(TypeError, wire_format.UnpackTag, None)
65 self.assertRaises(TypeError, wire_format.UnpackTag, 'abc')
66 self.assertRaises(TypeError, wire_format.UnpackTag, 0.0)
67 self.assertRaises(TypeError, wire_format.UnpackTag, object())
70 Z = wire_format.ZigZagEncode
[all …]
Dtype_checkers.py57 from google.protobuf.internal import wire_format
216 _FieldDescriptor.TYPE_DOUBLE: wire_format.DoubleByteSize,
217 _FieldDescriptor.TYPE_FLOAT: wire_format.FloatByteSize,
218 _FieldDescriptor.TYPE_INT64: wire_format.Int64ByteSize,
219 _FieldDescriptor.TYPE_UINT64: wire_format.UInt64ByteSize,
220 _FieldDescriptor.TYPE_INT32: wire_format.Int32ByteSize,
221 _FieldDescriptor.TYPE_FIXED64: wire_format.Fixed64ByteSize,
222 _FieldDescriptor.TYPE_FIXED32: wire_format.Fixed32ByteSize,
223 _FieldDescriptor.TYPE_BOOL: wire_format.BoolByteSize,
224 _FieldDescriptor.TYPE_STRING: wire_format.StringByteSize,
[all …]
Dencoder.py76 from google.protobuf.internal import wire_format
118 return _VarintSize(wire_format.PackTag(field_number, 0))
225 _SignedVarintSize, wire_format.ZigZagEncode)
400 return _VarintBytes(wire_format.PackTag(field_number, wire_type))
420 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
454 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
495 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
568 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
610 wire_format.WIRETYPE_VARINT, _EncodeSignedVarint, _SignedVarintSize)
613 wire_format.WIRETYPE_VARINT, _EncodeVarint, _VarintSize)
[all …]
Ddecoder.py91 from google.protobuf.internal import wire_format
334 return _SimpleDecoder(wire_format.WIRETYPE_FIXED32, InnerDecode)
368 return _SimpleDecoder(wire_format.WIRETYPE_FIXED64, InnerDecode)
392 wire_format.WIRETYPE_VARINT)
404 tag_bytes = encoder.TagBytes(field_number, wire_format.WIRETYPE_VARINT)
440 wire_format.WIRETYPE_VARINT)
451 wire_format.WIRETYPE_VARINT, _DecodeSignedVarint32)
454 wire_format.WIRETYPE_VARINT, _DecodeSignedVarint)
456 UInt32Decoder = _SimpleDecoder(wire_format.WIRETYPE_VARINT, _DecodeVarint32)
457 UInt64Decoder = _SimpleDecoder(wire_format.WIRETYPE_VARINT, _DecodeVarint)
[all …]
Dreflection_test.py57 from google.protobuf.internal import wire_format
86 return wire_format.ZigZagDecode(self.ReadVarint())
91 return wire_format.UnpackTag(self.ReadVarint())
2327 self.assertEqual((1, wire_format.WIRETYPE_VARINT), ReadTag())
2329 self.assertEqual((2, wire_format.WIRETYPE_VARINT), ReadTag())
2331 self.assertEqual((3, wire_format.WIRETYPE_VARINT), ReadTag())
2333 self.assertEqual((4, wire_format.WIRETYPE_VARINT), ReadTag())
2335 self.assertEqual((5, wire_format.WIRETYPE_VARINT), ReadTag())
2622 self.assertEqual((90, wire_format.WIRETYPE_LENGTH_DELIMITED), ReadTag())
2628 self.assertEqual((100, wire_format.WIRETYPE_LENGTH_DELIMITED), ReadTag())
[all …]
Dpython_message.py77 from google.protobuf.internal import wire_format
232 if is_repeated and wire_format.IsTypePackable(field_descriptor.type):
235 AddDecoder(wire_format.WIRETYPE_LENGTH_DELIMITED, True)
/external/nanopb-c/generator/google/protobuf/internal/
Dtype_checkers.py50 from google.protobuf.internal import wire_format
174 _FieldDescriptor.TYPE_DOUBLE: wire_format.DoubleByteSize,
175 _FieldDescriptor.TYPE_FLOAT: wire_format.FloatByteSize,
176 _FieldDescriptor.TYPE_INT64: wire_format.Int64ByteSize,
177 _FieldDescriptor.TYPE_UINT64: wire_format.UInt64ByteSize,
178 _FieldDescriptor.TYPE_INT32: wire_format.Int32ByteSize,
179 _FieldDescriptor.TYPE_FIXED64: wire_format.Fixed64ByteSize,
180 _FieldDescriptor.TYPE_FIXED32: wire_format.Fixed32ByteSize,
181 _FieldDescriptor.TYPE_BOOL: wire_format.BoolByteSize,
182 _FieldDescriptor.TYPE_STRING: wire_format.StringByteSize,
[all …]
Dencoder.py70 from google.protobuf.internal import wire_format
112 return _VarintSize(wire_format.PackTag(field_number, 0))
219 _SignedVarintSize, wire_format.ZigZagEncode)
391 return _VarintBytes(wire_format.PackTag(field_number, wire_type))
411 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
445 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
486 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
552 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
594 wire_format.WIRETYPE_VARINT, _EncodeSignedVarint, _SignedVarintSize)
597 wire_format.WIRETYPE_VARINT, _EncodeVarint, _VarintSize)
[all …]
Ddecoder.py85 from google.protobuf.internal import wire_format
312 return _SimpleDecoder(wire_format.WIRETYPE_FIXED32, InnerDecode)
342 return _SimpleDecoder(wire_format.WIRETYPE_FIXED64, InnerDecode)
349 wire_format.WIRETYPE_VARINT, _DecodeSignedVarint32)
352 wire_format.WIRETYPE_VARINT, _DecodeSignedVarint)
354 UInt32Decoder = _SimpleDecoder(wire_format.WIRETYPE_VARINT, _DecodeVarint32)
355 UInt64Decoder = _SimpleDecoder(wire_format.WIRETYPE_VARINT, _DecodeVarint)
358 wire_format.WIRETYPE_VARINT, _DecodeVarint32, wire_format.ZigZagDecode)
360 wire_format.WIRETYPE_VARINT, _DecodeVarint, wire_format.ZigZagDecode)
366 Fixed32Decoder = _StructPackDecoder(wire_format.WIRETYPE_FIXED32, '<I')
[all …]
Dpython_message.py68 from google.protobuf.internal import wire_format
220 if is_repeated and wire_format.IsTypePackable(field_descriptor.type):
223 AddDecoder(wire_format.WIRETYPE_LENGTH_DELIMITED, True)
/external/autotest/scheduler/
Drdb_hosts_unittest.py62 formatted_server_host = server_host.wire_format()
66 bare_formatted_server_host = server_host.wire_format(
102 **server_host.wire_format())
118 server_host_dict = rdb_hosts.RDBServerHostWrapper(db_host).wire_format()
139 self.db_helper.get_host(hostname=hostname)[0]).wire_format()
152 server_host_dict = rdb_hosts.RDBServerHostWrapper(db_host).wire_format()
Drdb_hosts.py77 def wire_format(self): member in RDBHost
151 def wire_format(self, unwrap_foreign_keys=True): member in RDBServerHostWrapper
160 host_info = super(RDBServerHostWrapper, self).wire_format()
316 return self.wire_format()
Drdb_utils.py21 def wire_format(self, **kwargs): member in RDBException
Drdb.py170 self.response_map[request] = [reply.wire_format()
Drdb_testing_utils.py56 wire_formatted_map[request] = [reply.wire_format()
/external/protobuf/vsprojects/
Dextract_includes.bat32 copy ..\src\google\protobuf\wire_format.h include\google\protobuf\wire_format.h
/external/protobuf/
DAndroid.mk86 src/google/protobuf/wire_format.cc \
399 src/google/protobuf/wire_format.cc \
DMakefile.am207 python/google/protobuf/internal/wire_format.py \
DMakefile.in542 python/google/protobuf/internal/wire_format.py \
/external/protobuf/src/google/protobuf/
DSEBS55 "wire_format.cc",
/external/protobuf/src/
DMakefile.am74 google/protobuf/wire_format.h \
141 google/protobuf/wire_format.cc \
DMakefile.in191 google/protobuf/wire_format.lo \
501 google/protobuf/wire_format.h \
912 google/protobuf/wire_format.h \
978 google/protobuf/wire_format.cc \
1432 google/protobuf/wire_format.lo: google/protobuf/$(am__dirstamp) \
2076 @AMDEP_TRUE@@am__include@ @am__quote@google/protobuf/$(DEPDIR)/wire_format.Plo@am__quote@