remain returns the number of bits remaining.
()
| 113 | |
| 114 | // remain returns the number of bits remaining. |
| 115 | func (b *bitReader) remain() uint { |
| 116 | return 8*uint(b.cursor) + 64 - uint(b.bitsRead) |
| 117 | } |
| 118 | |
| 119 | // close the bitstream and returns an error if out-of-buffer reads occurred. |
| 120 | func (b *bitReader) close() error { |
no outgoing calls