finished returns true if all bits have been read from the bit stream.
()
| 103 | |
| 104 | // finished returns true if all bits have been read from the bit stream. |
| 105 | func (b *bitReader) finished() bool { |
| 106 | return b.cursor == 0 && b.bitsRead >= 64 |
| 107 | } |
| 108 | |
| 109 | // overread returns true if more bits have been requested than is on the stream. |
| 110 | func (b *bitReader) overread() bool { |