Home
last modified time | relevance | path

Searched refs:wire_type (Results 1 – 25 of 120) sorted by relevance

12345

/external/rust/crates/protobuf/2.27.1/src/
Drt.rs260 wire_type: WireType, in read_repeated_int32_into()
264 match wire_type { in read_repeated_int32_into()
270 _ => Err(unexpected_wire_type(wire_type)), in read_repeated_int32_into()
276 wire_type: WireType, in read_repeated_int64_into()
280 match wire_type { in read_repeated_int64_into()
286 _ => Err(unexpected_wire_type(wire_type)), in read_repeated_int64_into()
292 wire_type: WireType, in read_repeated_uint32_into()
296 match wire_type { in read_repeated_uint32_into()
302 _ => Err(unexpected_wire_type(wire_type)), in read_repeated_uint32_into()
308 wire_type: WireType, in read_repeated_uint64_into()
[all …]
Dwire_format.rs51 wire_type: WireType, field
59 (self.field_number << TAG_TYPE_BITS) | (self.wire_type as u32) in value()
65 let wire_type = WireType::new(value & TAG_TYPE_MASK); in new() localVariable
66 if wire_type.is_none() { in new()
75 wire_type: wire_type.unwrap(), in new()
84 pub fn make(field_number: u32, wire_type: WireType) -> Tag { in make()
88 wire_type: wire_type, in make()
94 (self.field_number(), self.wire_type()) in unpack()
97 fn wire_type(self) -> WireType { in wire_type() method
98 self.wire_type in wire_type()
Dtypes.rs29 fn wire_type() -> WireType; in wire_type() method
44 if Self::wire_type() == WireType::WireTypeLengthDelimited { in compute_size_with_length_delimiter()
61 if Self::wire_type() == WireType::WireTypeLengthDelimited { in get_cached_size_with_length_delimiter()
124 fn wire_type() -> WireType { in wire_type() method
157 fn wire_type() -> WireType { in wire_type() method
190 fn wire_type() -> WireType { in wire_type() method
222 fn wire_type() -> WireType { in wire_type() method
250 fn wire_type() -> WireType { in wire_type() method
278 fn wire_type() -> WireType { in wire_type() method
306 fn wire_type() -> WireType { in wire_type() method
[all …]
Ddescriptor.rs83 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
86 crate::rt::read_repeated_message_into(wire_type, is, &mut self.file)?; in merge_from()
89 … crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; in merge_from()
612 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
615 crate::rt::read_singular_string_into(wire_type, is, &mut self.name)?; in merge_from()
618 crate::rt::read_singular_string_into(wire_type, is, &mut self.package)?; in merge_from()
621 crate::rt::read_repeated_string_into(wire_type, is, &mut self.dependency)?; in merge_from()
624 … crate::rt::read_repeated_int32_into(wire_type, is, &mut self.public_dependency)?; in merge_from()
627 crate::rt::read_repeated_int32_into(wire_type, is, &mut self.weak_dependency)?; in merge_from()
630 crate::rt::read_repeated_message_into(wire_type, is, &mut self.message_type)?; in merge_from()
[all …]
Dplugin.rs149 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
152 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
153 … return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); in merge_from()
159 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
160 … return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); in merge_from()
166 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
167 … return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); in merge_from()
173 crate::rt::read_singular_string_into(wire_type, is, &mut self.suffix)?; in merge_from()
176 … crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; in merge_from()
474 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
[all …]
/external/rust/crates/protobuf/src/rt/
Dunknown_or_group.rs12 let (_, wire_type) = is.read_tag_unpack()?; in skip_group()
13 if wire_type == WireType::EndGroup { in skip_group()
16 is.skip_field(wire_type)?; in skip_group()
39 wire_type: WireType, in read_unknown_or_skip_group_with_tag_unpacked()
43 match wire_type { in read_unknown_or_skip_group_with_tag_unpacked()
46 let unknown = is.read_unknown(wire_type)?; in read_unknown_or_skip_group_with_tag_unpacked()
61 let (field_humber, wire_type) = Tag::new(tag)?.unpack(); in read_unknown_or_skip_group()
62 read_unknown_or_skip_group_with_tag_unpacked(field_humber, wire_type, is, unknown_fields) in read_unknown_or_skip_group()
67 let (_field_humber, wire_type) = Tag::new(tag)?.unpack(); in skip_field_for_tag()
68 is.skip_field(wire_type) in skip_field_for_tag()
Dmap.rs13 let (field_number, wire_type) = is.read_tag_unpack()?; in read_map_template_new()
15 1 => key(wire_type, is)?, in read_map_template_new()
16 2 => value(wire_type, is)?, in read_map_template_new()
17 _ => is.skip_field(wire_type)?, in read_map_template_new()
25 wire_type: WireType, in read_map_template()
30 if wire_type != WireType::LengthDelimited { in read_map_template()
31 return Err(WireError::UnexpectedWireType(wire_type).into()); in read_map_template()
/external/rust/crates/protobuf/src/
Dwire_format.rs90 wire_type: WireType, field
96 (self.field_number << TAG_TYPE_BITS) | (self.wire_type as u32) in value()
101 let wire_type = WireType::new(value & TAG_TYPE_MASK); in new() localVariable
102 if wire_type.is_none() { in new()
111 wire_type: wire_type.unwrap(), in new()
120 pub(crate) fn make(field_number: u32, wire_type: WireType) -> Tag { in make()
124 wire_type, in make()
130 (self.field_number(), self.wire_type()) in unpack()
134 fn wire_type(self) -> WireType { in wire_type() method
135 self.wire_type in wire_type()
/external/pigweed/pw_protobuf/public/pw_protobuf/
Dwire_format.h58 uint32_t wire_type = key & kWireTypeMask; in IsValidKey() local
60 return ValidFieldNumber(field_number) && (wire_type <= 2 || wire_type == 5); in IsValidKey()
66 constexpr FieldKey(uint32_t field_number, WireType wire_type) in FieldKey() argument
68 static_cast<uint32_t>(wire_type)) { in FieldKey()
82 constexpr WireType wire_type() const { in wire_type() function
94 uint32_t field_number, WireType wire_type) { in MakeKey() argument
95 return FieldKey(field_number, wire_type); in MakeKey()
/external/protobuf/python/google/protobuf/
Dunknown_fields.py56 def __init__(self, field_number, wire_type, data): argument
58 self._wire_type = wire_type
67 def wire_type(self): member in UnknownField
82 def InternalAdd(field_number, wire_type, data): argument
83 unknown_field = UnknownField(field_number, wire_type, data)
100 field_number, wire_type = wire_format.UnpackTag(tag)
104 memoryview(buffer), 0, wire_type)
105 InternalAdd(field_number, wire_type, data)
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c28 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, pb_byte_t *b…
29 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel…
30 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fi…
31 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_…
33 …n_decoder(pb_istream_t *stream, pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type);
34 …urn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iter_t…
250 bool checkreturn pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool… in pb_decode_tag() argument
254 *wire_type = (pb_wire_type_t) 0; in pb_decode_tag()
272 *wire_type = (pb_wire_type_t)(temp & 7); in pb_decode_tag()
276 bool checkreturn pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type) in pb_skip_field() argument
[all …]
/external/crosvm/system_api/src/protos/
Dfido.rs80 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
83 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?; in merge_from()
86 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
270 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
273 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; in merge_from()
276 … ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.raw_id)?; in merge_from()
279 … ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.client_data_json)?; in merge_from()
282 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
523 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
526 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.info)?; in merge_from()
[all …]
DUserDataAuth.rs116 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
119 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.keys)?; in merge_from()
122 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
123 … return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); in merge_from()
129 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
130 … return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); in merge_from()
136 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
352 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
355 … ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_id)?; in merge_from()
358 … ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.readable_error_id)?; in merge_from()
[all …]
Dkey.rs113 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
116 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
117 … return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); in merge_from()
123 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
124 … return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); in merge_from()
130 if wire_type != ::protobuf::wire_format::WireTypeVarint { in merge_from()
131 … return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); in merge_from()
137 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
285 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
288 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.entry)?; in merge_from()
[all …]
Dauth_factor.rs80 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
83 … ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.secret)?; in merge_from()
86 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
216 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
219 … ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.secret)?; in merge_from()
222 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
406 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
409 … ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.mediator_pub_key)?; in merge_from()
412 … ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.epoch_response)?; in merge_from()
415 … ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.recovery_response)?; in merge_from()
[all …]
/external/perfetto/include/perfetto/protozero/
Dproto_decoder.h172 template <proto_utils::ProtoWireType wire_type, typename CppType>
182 static_assert(wire_type == ProtoWireType::kVarInt || in PackedRepeatedFieldIterator()
183 wire_type == ProtoWireType::kFixed32 || in PackedRepeatedFieldIterator()
184 wire_type == ProtoWireType::kFixed64, in PackedRepeatedFieldIterator()
197 if ((wire_type == ProtoWireType::kFixed32 && (size % 4) != 0) || in PackedRepeatedFieldIterator()
198 (wire_type == ProtoWireType::kFixed64 && (size % 8) != 0)) { in PackedRepeatedFieldIterator()
221 if (wire_type == ProtoWireType::kVarInt) {
235 constexpr size_t kStep = wire_type == ProtoWireType::kFixed32 ? 4 : 8;
338 template <proto_utils::ProtoWireType wire_type, typename cpp_type>
339 PackedRepeatedFieldIterator<wire_type, cpp_type> GetPackedRepeated( in GetPackedRepeated()
[all …]
/external/nanopb-c/
Dpb_decode.c27 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, pb_byte_t *b…
28 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel…
29 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fi…
30 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_…
32 …n_decoder(pb_istream_t *stream, pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type);
33 …urn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iter_t…
298 bool checkreturn pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool… in pb_decode_tag() argument
302 *wire_type = (pb_wire_type_t) 0; in pb_decode_tag()
317 *wire_type = (pb_wire_type_t)(temp & 7); in pb_decode_tag()
321 bool checkreturn pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type) in pb_skip_field() argument
[all …]
/external/chromium-trace/catapult/common/py_trace_event/third_party/protobuf/
Dwire_format.py41 def PackTag(field_number, wire_type): argument
49 if not 0 <= wire_type <= _WIRETYPE_MAX:
50 raise RuntimeError('Unknown wire type: %d' % wire_type)
51 return (field_number << TAG_TYPE_BITS) | wire_type
Dencoder.py112 def TagBytes(field_number, wire_type): argument
115 return _VarintBytes(wire_format.PackTag(field_number, wire_type))
118 def _SimpleEncoder(wire_type, encode_value, compute_value_size): argument
143 tag_bytes = TagBytes(field_number, wire_type)
150 tag_bytes = TagBytes(field_number, wire_type)
159 def _FloatingPointEncoder(wire_type, format): argument
214 tag_bytes = TagBytes(field_number, wire_type)
224 tag_bytes = TagBytes(field_number, wire_type)
/external/rust/crates/protobuf/2.27.1/src/well_known_types/
Dwrappers.rs68 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
71 if wire_type != crate::wire_format::WireTypeFixed64 { in merge_from()
72 … return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); in merge_from()
78 … crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; in merge_from()
223 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
226 if wire_type != crate::wire_format::WireTypeFixed32 { in merge_from()
227 … return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); in merge_from()
233 … crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; in merge_from()
378 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
381 if wire_type != crate::wire_format::WireTypeVarint { in merge_from()
[all …]
Dapi.rs254 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
257 crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; in merge_from()
260 crate::rt::read_repeated_message_into(wire_type, is, &mut self.methods)?; in merge_from()
263 crate::rt::read_repeated_message_into(wire_type, is, &mut self.options)?; in merge_from()
266 crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; in merge_from()
269 crate::rt::read_singular_message_into(wire_type, is, &mut self.source_context)?; in merge_from()
272 crate::rt::read_repeated_message_into(wire_type, is, &mut self.mixins)?; in merge_from()
275 …crate::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.syntax, 7, &mut self… in merge_from()
278 … crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; in merge_from()
651 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
[all …]
Dtype_pb.rs222 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
225 crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; in merge_from()
228 crate::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?; in merge_from()
231 crate::rt::read_repeated_string_into(wire_type, is, &mut self.oneofs)?; in merge_from()
234 crate::rt::read_repeated_message_into(wire_type, is, &mut self.options)?; in merge_from()
237 crate::rt::read_singular_message_into(wire_type, is, &mut self.source_context)?; in merge_from()
240 …crate::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.syntax, 6, &mut self… in merge_from()
243 … crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; in merge_from()
660 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
663 …crate::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.kind, 1, &mut self.u… in merge_from()
[all …]
/external/crosvm/metrics/out/
Devent_details.rs173 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
176 …::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.emulator_child_process_exit_de… in merge_from()
179 … ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.wave_format_details)?; in merge_from()
182 … ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.emulator_dll_details)?; in merge_from()
185 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
464 let (field_number, wire_type) = is.read_tag_unpack()?; in merge_from()
467 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.requested)?; in merge_from()
470 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.modified)?; in merge_from()
473 … ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.closest_matched)?; in merge_from()
476 …::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())… in merge_from()
[all …]
/external/rust/crates/protobuf/src/reflect/
Dprotobuf_type_box.rs75 wire_type: WireType, in read()
77 if wire_type != WireType::for_type(self.t) { in read()
78 return Err(WireError::UnexpectedWireType(wire_type).into()); in read()
114 wire_type: WireType, in read_repeated_into()
117 if wire_type == WireType::for_type(self.t) { in read_repeated_into()
118 let value = self.read(is, wire_type)?; in read_repeated_into()
121 } else if wire_type == WireType::LengthDelimited { in read_repeated_into()
218 Err(WireError::UnexpectedWireType(wire_type).into()) in read_repeated_into()
222 Err(WireError::UnexpectedWireType(wire_type).into()) in read_repeated_into()
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Ddecoder.py185 def _SimpleDecoder(wire_type, decode_value): argument
215 tag_bytes = encoder.TagBytes(field_number, wire_type)
248 def _ModifiedDecoder(wire_type, decode_value, modify_value): argument
259 return _SimpleDecoder(wire_type, InnerDecode)
262 def _StructPackDecoder(wire_type, format): argument
284 return _SimpleDecoder(wire_type, InnerDecode)
937 field_number, wire_type = wire_format.UnpackTag(tag)
938 if wire_type == wire_format.WIRETYPE_END_GROUP:
940 (data, pos) = _DecodeUnknownField(buffer, pos, wire_type)
942 unknown_field_set._add(field_number, wire_type, data)
[all …]

12345