Lines Matching refs:length
29 // Reads a variable-length integer from **varint_ptr
30 // and returns it in a fixed-length representation. Increments
69 int length = 1;
77 ++length;
80 return length;
86 const int length = EncodeInternal(v, varint_buf);
87 memcpy(ptr, &varint_buf[kMaxBytes - length], length);
88 return length;
95 const int length = EncodeInternal(value, varint_buf);
96 s->append(&varint_buf[kMaxBytes - length], length);
104 const int length = EncodeInternal(value, varint_buf);
105 output_string->append(&varint_buf[kMaxBytes - length], length);
108 // Returns the encoding length of the specified value.
110 int VarintBE<SignedIntegerType>::Length(SignedIntegerType v) {
113 << " passed to VarintBE::Length,"
117 int length = 0;
120 ++length;
122 return length;