Searched refs:kVarintBits (Results 1 – 2 of 2) sorted by relevance
217 constexpr uint32_t kVarintBits = 4; // Minimum number of bits used for varint. variable256 uint32_t x = ReadBits(kVarintBits); in ReadVarint()265 static_assert(N * kVarintBits <= sizeof(uint64_t) * kBitsPerByte, "N too big"); in ReadInterleavedVarints()268 uint64_t data = ReadBits<uint64_t>(N * kVarintBits); in ReadInterleavedVarints()270 values[i] = BitFieldExtract(data, i * kVarintBits, kVarintBits); in ReadInterleavedVarints()330 WriteBits(kVarintMax + BitsToBytesRoundUp(MinimumBitsToStore(value)), kVarintBits); in WriteInterleavedVarints()332 WriteBits(value, kVarintBits); in WriteInterleavedVarints()
46 uint32_t upper_bound = RoundUp(MinimumBitsToStore(value), kBitsPerByte) + kVarintBits; in TEST()