Home
last modified time | relevance | path

Searched refs:varint_max_size (Results 1 – 2 of 2) sorted by relevance

/external/nanopb-c/generator/
Dnanopb_generator.py125 def varint_max_size(max_value): function
134 assert varint_max_size(-1) == 10
135 assert varint_max_size(0) == 1
136 assert varint_max_size(127) == 1
137 assert varint_max_size(128) == 2
203 return max([varint_max_size(v) for n,v in self.values])
374 self.enc_size = varint_max_size(self.max_size) + self.max_size
383 self.enc_size = varint_max_size(self.max_size) + self.max_size
391 self.enc_size = varint_max_size(self.max_size) + self.max_size
642 encsize += varint_max_size(encsize.upperlimit())
[all …]
/external/grpc-grpc/third_party/nanopb/generator/
Dnanopb_generator.py110 def varint_max_size(max_value): function
119 assert varint_max_size(-1) == 10
120 assert varint_max_size(0) == 1
121 assert varint_max_size(127) == 1
122 assert varint_max_size(128) == 2
188 return max([varint_max_size(v) for n,v in self.values])
323 self.enc_size = varint_max_size(self.max_size) + self.max_size
333 self.enc_size = varint_max_size(self.max_size) + self.max_size
561 encsize += varint_max_size(encsize.upperlimit())
589 encsize += varint_max_size(self.tag << 3) # Tag + wire type