Home | History | Annotate | Download | only in base

Lines Matching refs:num_bits

24   // Read |num_bits| next bits from stream and return in |*out|, first bit
25 // from the stream starting at |num_bits| position in |*out|.
26 // |num_bits| cannot be larger than the bits the type can hold.
30 // return false unless |num_bits| is 0. The type |T| has to be a primitive
32 template<typename T> bool ReadBits(int num_bits, T *out) {
33 DCHECK_LE(num_bits, static_cast<int>(sizeof(T) * 8));
35 bool ret = ReadBitsInternal(num_bits, &temp);
40 // Skip |num_bits| next bits from stream. Return false if the given number of
43 // SkipBits operations will always return false unless |num_bits| is 0.
44 bool SkipBits(int num_bits);
51 bool ReadBitsInternal(int num_bits, uint64* out);