// ReadBits reads nb bits in from the underlying reader.
ReadBits reads nb bits in from the underlying reader.
// ReadBits reads nb bits in from the underlying reader .
func (pr *Reader) ReadBits(nb uint) uint {
	if err := pr.PullBits(nb); err != nil {
		panic(err)
	}
	val := uint(pr.bufBits & uint64(1<<nb-1))
	pr.bufBits >>= nb
	pr.numBits -= nb
	return val
}
func ( pr * Reader ) ReadBits ( nb uint ) uint { if err := pr . PullBits ( nb ) ; err != nil { panic ( err ) } val := uint ( pr . bufBits & uint64 ( 1 << nb - 1 ) ) pr . bufBits >>= nb pr . numBits -= nb return val }
ReadBits reads nb bits in from the underlying reader.
ReadBits reads nb bits in from the underlying reader .