Searched refs:max_value (Results 1 – 1 of 1) sorted by relevance
251 def varint_max_size(max_value): argument253 if max_value < 0:254 max_value = 2**64 - max_value256 if (max_value >> (i * 7)) == 0:258 raise ValueError("Value too large for varint: " + str(max_value))