BitReader reads arbitrary numbers of bits from a byte slice.
| 18 | |
| 19 | // BitReader reads arbitrary numbers of bits from a byte slice. |
| 20 | type BitReader struct { |
| 21 | data []byte |
| 22 | pos int // current bit position |
| 23 | } |
| 24 | |
| 25 | // NewBitReader creates a BitReader over the given byte slice. |
| 26 | func NewBitReader(data []byte) *BitReader { |
nothing calls this directly
no outgoing calls
no test coverage detected