OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:wire_type
(Results
1 - 7
of
7
) sorted by null
/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
...]
Completed in 308 milliseconds