/external/nanopb-c/examples/using_union_messages/ |
decode.c | 19 pb_wire_type_t wire_type; local 23 while (pb_decode_tag(stream, &wire_type, &tag, &eof)) 25 if (wire_type == PB_WT_STRING) 39 pb_skip_field(stream, wire_type);
|
/external/nanopb-c/ |
pb_decode.c | 38 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, uint8_t *buf, size_t *size); 42 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 43 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 44 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 45 static bool checkreturn default_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, uint32_t tag, pb_wire_type_t wire_type); 46 static bool checkreturn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iterator_t *iter); 246 bool checkreturn pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof) 250 *wire_type = (pb_wire_type_t) 0; 268 *wire_type = (pb_wire_type_t)(temp & 7); 272 bool checkreturn pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type) 808 pb_wire_type_t wire_type; local [all...] |
pb_decode.h | 120 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);
|
pb.h | 317 uint32_t tag, pb_wire_type_t wire_type);
|
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/ |
wire_format.py | 80 def PackTag(field_number, wire_type): 86 wire_type: One of the WIRETYPE_* constants. 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 95 returns a (field_number, wire_type) tuple.
|
encoder.py | 388 def TagBytes(field_number, wire_type): 391 return _VarintBytes(wire_format.PackTag(field_number, wire_type)) 398 def _SimpleEncoder(wire_type, encode_value, compute_value_size): 402 wire_type: The field's wire type, for encoding tags. 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): 457 tag_bytes = TagBytes(field_number, wire_type) 464 tag_bytes = TagBytes(field_number, wire_type) 473 def _StructPackEncoder(wire_type, format) [all...] |
decoder.py | 181 def _SimpleDecoder(wire_type, decode_value): 185 wire_type: The field's wire type. 210 tag_bytes = encoder.TagBytes(field_number, wire_type) 240 def _ModifiedDecoder(wire_type, decode_value, modify_value): 251 return _SimpleDecoder(wire_type, InnerDecode) 254 def _StructPackDecoder(wire_type, format): 258 wire_type: The field's wire type. 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 [all...] |
unknown_fields_test.py | 59 wire_type = type_checkers.FIELD_TYPE_TO_WIRE_TYPE[field_descriptor.type] 60 field_tag = encoder.TagBytes(field_descriptor.number, wire_type)
|
wire_format_test.py | 59 field_number, wire_type = wire_format.UnpackTag( 62 self.assertEqual(expected_wire_type, wire_type)
|
/external/protobuf/python/google/protobuf/internal/ |
wire_format.py | 80 def PackTag(field_number, wire_type): 86 wire_type: One of the WIRETYPE_* constants. 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 95 returns a (field_number, wire_type) tuple.
|
encoder.py | 382 def TagBytes(field_number, wire_type): 385 return _VarintBytes(wire_format.PackTag(field_number, wire_type)) 392 def _SimpleEncoder(wire_type, encode_value, compute_value_size): 396 wire_type: The field's wire type, for encoding tags. 417 tag_bytes = TagBytes(field_number, wire_type) 424 tag_bytes = TagBytes(field_number, wire_type) 433 def _ModifiedEncoder(wire_type, encode_value, compute_value_size, modify_value): 451 tag_bytes = TagBytes(field_number, wire_type) 458 tag_bytes = TagBytes(field_number, wire_type) 467 def _StructPackEncoder(wire_type, format) [all...] |
decoder.py | 174 def _SimpleDecoder(wire_type, decode_value): 178 wire_type: The field's wire type. 203 tag_bytes = encoder.TagBytes(field_number, wire_type) 233 def _ModifiedDecoder(wire_type, decode_value, modify_value): 244 return _SimpleDecoder(wire_type, InnerDecode) 247 def _StructPackDecoder(wire_type, format): 251 wire_type: The field's wire type. 269 return _SimpleDecoder(wire_type, InnerDecode) 636 wire_type = local_ord(tag_bytes[0]) & wiretype_mask 637 return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end [all...] |
wire_format_test.py | 59 field_number, wire_type = wire_format.UnpackTag( 62 self.assertEqual(expected_wire_type, wire_type)
|
/external/protobuf/src/google/protobuf/ |
wire_format_lite.cc | 164 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); local 166 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) {
|
wire_format.cc | 151 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); local 153 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) { [all...] |
extension_set.cc | 710 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); local 717 is_unknown = (wire_type != WireFormatLite::WIRETYPE_LENGTH_DELIMITED); 721 is_unknown = (wire_type != expected_wire_type); [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/ |
wire_format_lite.cc | 199 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); local 201 if (wire_type == WireFormatLite::WIRETYPE_END_GROUP) {
|
extension_set.cc | 861 WireFormatLite::WireType wire_type = WireFormatLite::GetTagWireType(tag); local [all...] |