Home
last modified time | relevance | path

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

12

/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 …]
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.h334 uint32_t tag, pb_wire_type_t wire_type);
/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…
293 bool checkreturn pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool… in pb_decode_tag() argument
297 *wire_type = (pb_wire_type_t) 0; in pb_decode_tag()
312 *wire_type = (pb_wire_type_t)(temp & 7); in pb_decode_tag()
316 bool checkreturn pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type) in pb_skip_field() argument
[all …]
Dpb_decode.h132 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
135 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
Dpb.h341 uint32_t tag, pb_wire_type_t wire_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/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/grpc-grpc/third_party/nanopb/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/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/libxkbcommon/xkbcommon/src/x11/
Dkeymap.c333 xcb_xkb_key_type_t *wire_type = types_iter.data; in get_types() local
336 FAIL_UNLESS(wire_type->numLevels > 0); in get_types()
338 type->mods.mods = translate_mods(wire_type->mods_mods, in get_types()
339 wire_type->mods_vmods, 0); in get_types()
340 type->mods.mask = translate_mods(wire_type->mods_mask, 0, 0); in get_types()
341 type->num_levels = wire_type->numLevels; in get_types()
344 int entries_length = xcb_xkb_key_type_map_length(wire_type); in get_types()
346 xcb_xkb_key_type_map_iterator(wire_type); in get_types()
348 type->num_entries = wire_type->nMapEntries; in get_types()
367 int preserves_length = xcb_xkb_key_type_preserve_length(wire_type); in get_types()
[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()
/external/tensorflow/tensorflow/core/kernels/
Ddecode_proto_op.cc1058 WireFormatLite::WireType wire_type, in CollectField() argument
1075 if (wire_type == WireFormatLite::WIRETYPE_LENGTH_DELIMITED && in CollectField()
1086 if (wire_type != schema_wire_type) { in CollectField()
1088 input, WireFormatLite::MakeTag(field.number, wire_type))) { in CollectField()
Dencode_proto_op.cc253 auto wire_type = WireFormatLite::WireTypeForFieldType( in WriteField() local
275 WireFormatLite::WriteTag(field_desc.number(), wire_type, output); in WriteField()
/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 …]
/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 …]
/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/grpc-grpc/third_party/nanopb/docs/
Dreference.rst336 uint32_t tag, pb_wire_type_t wire_type);
673 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
676 :wire_type: Pointer to variable where to store the wire type of the field.
688 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
691 :wire_type: Type of field to skip.
/external/nanopb-c/docs/
Dreference.rst346 uint32_t tag, pb_wire_type_t wire_type);
683 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
686 :wire_type: Pointer to variable where to store the wire type of the field.
698 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
701 :wire_type: Type of field to skip.

12