Home
last modified time | relevance | path

Searched refs:tag_bytes (Results 1 – 8 of 8) sorted by relevance

/third_party/protobuf/python/google/protobuf/internal/
Ddecoder.py196 tag_bytes = buffer[start:pos].tobytes()
197 return tag_bytes, pos
233 tag_bytes = encoder.TagBytes(field_number, wire_type)
234 tag_len = len(tag_bytes)
245 if buffer[new_pos:pos] != tag_bytes or new_pos >= end:
425 tag_bytes = encoder.TagBytes(field_number,
429 (tag_bytes, buffer[value_start_pos:pos].tobytes()))
447 tag_bytes = encoder.TagBytes(field_number, wire_format.WIRETYPE_VARINT)
448 tag_len = len(tag_bytes)
474 (tag_bytes, buffer[pos:new_pos].tobytes()))
[all …]
Dencoder.py444 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
447 write(tag_bytes)
456 tag_bytes = TagBytes(field_number, wire_type)
459 write(tag_bytes)
463 tag_bytes = TagBytes(field_number, wire_type)
465 write(tag_bytes)
478 tag_bytes = TagBytes(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED)
481 write(tag_bytes)
490 tag_bytes = TagBytes(field_number, wire_type)
493 write(tag_bytes)
[all …]
Dpython_message.py330 tag_bytes = encoder.TagBytes(field_descriptor.number, wiretype)
367 cls._decoders_by_tag[tag_bytes] = (field_decoder, oneof_descriptor)
1077 for tag_bytes, value_bytes in self._unknown_fields:
1078 size += len(tag_bytes) + len(value_bytes)
1127 for tag_bytes, value_bytes in self._unknown_fields:
1128 write_bytes(tag_bytes)
1181 (tag_bytes, new_pos) = local_ReadTag(buffer, pos)
1182 field_decoder, field_desc = decoders_by_tag.get(tag_bytes, (None, None))
1192 (tag, _) = decoder._DecodeVarint(tag_bytes, 0)
1205 new_pos = local_SkipField(buffer, old_pos, end, tag_bytes)
[all …]
Dwire_format_test.py109 for field_number, tag_bytes in ((15, 1), (16, 2), (2047, 2), (2048, 3)):
110 expected_size = expected_value_size + tag_bytes
Dunknown_fields_test.py190 for tag_bytes, value in self.empty_message._unknown_fields:
191 if tag_bytes == field_tag:
192 decoder = unittest_pb2.TestAllTypes._decoders_by_tag[tag_bytes][0]
/third_party/ffmpeg/libavformat/
Dapetag.c113 uint32_t val, fields, tag_bytes; in ff_ape_parse_tag() local
134 tag_bytes = avio_rl32(pb); /* tag size */ in ff_ape_parse_tag()
135 if (tag_bytes - APE_TAG_FOOTER_BYTES > (1024 * 1024 * 16)) { in ff_ape_parse_tag()
140 if (tag_bytes > file_size - APE_TAG_FOOTER_BYTES) { in ff_ape_parse_tag()
141 av_log(s, AV_LOG_ERROR, "Invalid tag size %"PRIu32".\n", tag_bytes); in ff_ape_parse_tag()
157 avio_seek(pb, file_size - tag_bytes, SEEK_SET); in ff_ape_parse_tag()
160 tag_bytes += APE_TAG_HEADER_BYTES; in ff_ape_parse_tag()
162 tag_start = file_size - tag_bytes; in ff_ape_parse_tag()
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.cc66 string tag_bytes = StrCat(tag_array[0]); in SetCommonFieldVariables() local
68 tag_bytes += ", " + StrCat(tag_array[i]); in SetCommonFieldVariables()
73 (*variables)["tag_bytes"] = tag_bytes; in SetCommonFieldVariables()
80 tag_bytes = StrCat(tag_array[0]); in SetCommonFieldVariables()
82 tag_bytes += ", " + StrCat(tag_array[i]); in SetCommonFieldVariables()
86 variables_["end_tag_bytes"] = tag_bytes; in SetCommonFieldVariables()
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dwire_format_test.py105 for field_number, tag_bytes in ((15, 1), (16, 2), (2047, 2), (2048, 3)):
106 expected_size = expected_value_size + tag_bytes