OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:modify_value
(Results
1 - 4
of
4
) sorted by null
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/
encoder.py
152
def _ModifiedSizer(compute_value_size,
modify_value
):
153
"""Like SimpleSizer, but
modify_value
is invoked on each value before it is
154
passed to compute_value_size.
modify_value
is typically ZigZagEncode."""
163
result += compute_value_size(
modify_value
(element))
170
result += compute_value_size(
modify_value
(element))
175
return tag_size + compute_value_size(
modify_value
(value))
439
def _ModifiedEncoder(wire_type, encode_value, compute_value_size,
modify_value
):
440
"""Like SimpleEncoder but additionally invokes
modify_value
on every value
441
before passing it to encode_value. Usually
modify_value
is ZigZagEncode."""
451
size += compute_value_size(
modify_value
(element)
[
all
...]
decoder.py
240
def _ModifiedDecoder(wire_type, decode_value,
modify_value
):
241
"""Like SimpleDecoder but additionally invokes
modify_value
on every value
242
before storing it. Usually
modify_value
is ZigZagDecode.
250
return (
modify_value
(result), new_pos)
/external/protobuf/python/google/protobuf/internal/
encoder.py
146
def _ModifiedSizer(compute_value_size,
modify_value
):
147
"""Like SimpleSizer, but
modify_value
is invoked on each value before it is
148
passed to compute_value_size.
modify_value
is typically ZigZagEncode."""
157
result += compute_value_size(
modify_value
(element))
164
result += compute_value_size(
modify_value
(element))
169
return tag_size + compute_value_size(
modify_value
(value))
433
def _ModifiedEncoder(wire_type, encode_value, compute_value_size,
modify_value
):
434
"""Like SimpleEncoder but additionally invokes
modify_value
on every value
435
before passing it to encode_value. Usually
modify_value
is ZigZagEncode."""
445
size += compute_value_size(
modify_value
(element)
[
all
...]
decoder.py
233
def _ModifiedDecoder(wire_type, decode_value,
modify_value
):
234
"""Like SimpleDecoder but additionally invokes
modify_value
on every value
235
before storing it. Usually
modify_value
is ZigZagDecode.
243
return (
modify_value
(result), new_pos)
Completed in 44 milliseconds