HomeSort by relevance Sort by last modified time
    Searched refs:modify_value (Results 1 - 4 of 4) sorted by null

  /external/nanopb-c/generator/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 158 def _ModifiedSizer(compute_value_size, modify_value):
159 """Like SimpleSizer, but modify_value is invoked on each value before it is
160 passed to compute_value_size. modify_value is typically ZigZagEncode."""
169 result += compute_value_size(modify_value(element))
176 result += compute_value_size(modify_value(element))
181 return tag_size + compute_value_size(modify_value(value))
448 def _ModifiedEncoder(wire_type, encode_value, compute_value_size, modify_value):
449 """Like SimpleEncoder but additionally invokes modify_value on every value
450 before passing it to encode_value. Usually modify_value is ZigZagEncode."""
460 size += compute_value_size(modify_value(element)
    [all...]
decoder.py 257 def _ModifiedDecoder(wire_type, decode_value, modify_value):
258 """Like SimpleDecoder but additionally invokes modify_value on every value
259 before storing it. Usually modify_value is ZigZagDecode.
267 return (modify_value(result), new_pos)

Completed in 2019 milliseconds