Home
last modified time | relevance | path

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

/external/nanopb-c/
Dpb_decode.c38 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, uint8_t *buf…
42 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel…
43 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fi…
44 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_itera…
45 …n_decoder(pb_istream_t *stream, pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type);
46 …urn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iterat…
246 bool checkreturn pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool… in pb_decode_tag() argument
250 *wire_type = (pb_wire_type_t) 0; in pb_decode_tag()
268 *wire_type = (pb_wire_type_t)(temp & 7); in pb_decode_tag()
272 bool checkreturn pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type) in pb_skip_field() argument
[all …]
Dpb_decode.h120 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
123 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
Dpb.h317 uint32_t tag, pb_wire_type_t wire_type);
/external/nanopb-c/examples/using_union_messages/
Ddecode.c19 pb_wire_type_t wire_type; in decode_unionmessage_type() local
23 while (pb_decode_tag(stream, &wire_type, &tag, &eof)) in decode_unionmessage_type()
25 if (wire_type == PB_WT_STRING) in decode_unionmessage_type()
39 pb_skip_field(stream, wire_type); in decode_unionmessage_type()
/external/protobuf/python/google/protobuf/internal/
Dencoder.py415 def TagBytes(field_number, wire_type): argument
418 return _VarintBytes(wire_format.PackTag(field_number, wire_type))
425 def _SimpleEncoder(wire_type, encode_value, compute_value_size): argument
450 tag_bytes = TagBytes(field_number, wire_type)
457 tag_bytes = TagBytes(field_number, wire_type)
466 def _ModifiedEncoder(wire_type, encode_value, compute_value_size, modify_value): argument
484 tag_bytes = TagBytes(field_number, wire_type)
491 tag_bytes = TagBytes(field_number, wire_type)
500 def _StructPackEncoder(wire_type, format): argument
522 tag_bytes = TagBytes(field_number, wire_type)
[all …]
Dwire_format.py80 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
Ddecoder.py190 def _SimpleDecoder(wire_type, decode_value): argument
219 tag_bytes = encoder.TagBytes(field_number, wire_type)
249 def _ModifiedDecoder(wire_type, decode_value, modify_value): argument
260 return _SimpleDecoder(wire_type, InnerDecode)
263 def _StructPackDecoder(wire_type, format): argument
285 return _SimpleDecoder(wire_type, InnerDecode)
849 wire_type = ord(tag_bytes[0:1]) & wiretype_mask
850 return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)
Dunknown_fields_test.py163 wire_type = type_checkers.FIELD_TYPE_TO_WIRE_TYPE[field_descriptor.type]
164 field_tag = encoder.TagBytes(field_descriptor.number, wire_type)
274 wire_type = type_checkers.FIELD_TYPE_TO_WIRE_TYPE[field_descriptor.type]
275 field_tag = encoder.TagBytes(field_descriptor.number, wire_type)
Dwire_format_test.py63 field_number, wire_type = wire_format.UnpackTag(
66 self.assertEqual(expected_wire_type, wire_type)
/external/nanopb-c/generator/google/protobuf/internal/
Dencoder.py388 def TagBytes(field_number, wire_type): argument
391 return _VarintBytes(wire_format.PackTag(field_number, wire_type))
398 def _SimpleEncoder(wire_type, encode_value, compute_value_size): argument
423 tag_bytes = TagBytes(field_number, wire_type)
430 tag_bytes = TagBytes(field_number, wire_type)
439 def _ModifiedEncoder(wire_type, encode_value, compute_value_size, modify_value): argument
457 tag_bytes = TagBytes(field_number, wire_type)
464 tag_bytes = TagBytes(field_number, wire_type)
473 def _StructPackEncoder(wire_type, format): argument
495 tag_bytes = TagBytes(field_number, wire_type)
[all …]
Dwire_format.py80 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
Ddecoder.py181 def _SimpleDecoder(wire_type, decode_value): argument
210 tag_bytes = encoder.TagBytes(field_number, wire_type)
240 def _ModifiedDecoder(wire_type, decode_value, modify_value): argument
251 return _SimpleDecoder(wire_type, InnerDecode)
254 def _StructPackDecoder(wire_type, format): argument
276 return _SimpleDecoder(wire_type, InnerDecode)
715 wire_type = local_ord(tag_bytes[0]) & wiretype_mask
716 return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)
/external/protobuf/conformance/
Dconformance_test.cc139 string tag(uint32_t fieldnum, char wire_type) { in tag() argument
140 return varint((fieldnum << 3) | wire_type); in tag()
505 WireFormatLite::WireType wire_type = WireFormatLite::WireTypeForFieldType( in TestPrematureEOFForType() local
507 const string& incomplete = incompletes[wire_type]; in TestPrematureEOFForType()
512 tag(fieldnum, wire_type), in TestPrematureEOFForType()
516 tag(rep_fieldnum, wire_type), in TestPrematureEOFForType()
520 tag(UNKNOWN_FIELD, wire_type), in TestPrematureEOFForType()
524 cat( tag(fieldnum, wire_type), incomplete ), in TestPrematureEOFForType()
528 cat( tag(rep_fieldnum, wire_type), incomplete ), in TestPrematureEOFForType()
532 cat( tag(UNKNOWN_FIELD, wire_type), incomplete ), in TestPrematureEOFForType()
[all …]
/external/protobuf/src/google/protobuf/
Dwire_format_lite.cc231 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in SkipMessage() local
233 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) { in SkipMessage()
251 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in SkipMessage() local
253 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) { in SkipMessage()
Dextension_set.cc1117 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in FindExtensionInfoFromTag() local
1118 return FindExtensionInfoFromFieldNumber(wire_type, *field_number, in FindExtensionInfoFromTag()
1124 int wire_type, int field_number, ExtensionFinder* extension_finder, in FindExtensionInfoFromFieldNumber() argument
1136 wire_type == WireFormatLite::WIRETYPE_LENGTH_DELIMITED && in FindExtensionInfoFromFieldNumber()
1142 return expected_wire_type == wire_type; in FindExtensionInfoFromFieldNumber()
Dextension_set_heavy.cc557 int wire_type, int field_number, io::CodedInputStream* input, in ParseFieldMaybeLazily() argument
561 field_number, static_cast<WireFormatLite::WireType>(wire_type)), in ParseFieldMaybeLazily()
Dextension_set.h558 bool FindExtensionInfoFromFieldNumber(int wire_type, int field_number,
575 bool ParseFieldMaybeLazily(int wire_type, int field_number,
Dwire_format.cc143 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); in SkipMessage() local
145 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) { in SkipMessage()
/external/protobuf/php/ext/google/protobuf/
Dupb.c6941 static uint64_t get_encoded_tag(const upb_fielddef *f, int wire_type) { in get_encoded_tag() argument
6942 uint32_t tag = (upb_fielddef_number(f) << 3) | wire_type; in get_encoded_tag()
6950 int wire_type, int dest) { in putchecktag() argument
6951 uint64_t tag = get_encoded_tag(f, wire_type); in putchecktag()
6987 const upb_fielddef *f, int wire_type) { in dispatchtarget() argument
6995 uint64_t repacked = repack(upb_value_getuint64(v), wire_type); in dispatchtarget()
6999 uint64_t val = upb_pbdecoder_packdispatch(ofs, wire_type, NO_WIRE_TYPE); in dispatchtarget()
7066 int wire_type; in generate_msgfield() local
7076 wire_type = in generate_msgfield()
7083 putchecktag(c, f, wire_type, LABEL_DISPATCH); in generate_msgfield()
[all …]
Dupb.h7590 uint8_t wire_type);
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c7615 static uint64_t get_encoded_tag(const upb_fielddef *f, int wire_type) { in get_encoded_tag() argument
7616 uint32_t tag = (upb_fielddef_number(f) << 3) | wire_type; in get_encoded_tag()
7624 int wire_type, int dest) { in putchecktag() argument
7625 uint64_t tag = get_encoded_tag(f, wire_type); in putchecktag()
7661 const upb_fielddef *f, int wire_type) { in dispatchtarget() argument
7669 uint64_t repacked = repack(upb_value_getuint64(v), wire_type); in dispatchtarget()
7673 uint64_t val = upb_pbdecoder_packdispatch(ofs, wire_type, NO_WIRE_TYPE); in dispatchtarget()
7740 int wire_type; in generate_msgfield() local
7755 wire_type = in generate_msgfield()
7762 putchecktag(c, f, wire_type, LABEL_DISPATCH); in generate_msgfield()
[all …]
Dupb.h7890 uint8_t wire_type);
/external/protobuf/src/google/protobuf/util/internal/
Dproto_writer.cc753 WireFormatLite::WireType wire_type = WireFormatLite::WireTypeForFieldType( in WriteTag() local
755 stream_->WriteTag(WireFormatLite::MakeTag(field.number(), wire_type)); in WriteTag()
/external/nanopb-c/docs/
Dreference.rst315 uint32_t tag, pb_wire_type_t wire_type);
657 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, int *tag, bool *eof);
660 :wire_type: Pointer to variable where to store the wire type of the field.
672 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
675 :wire_type: Type of field to skip.