fillFastStart() assumes the bitReaderBytes is empty and there is at least 8 bytes to read.
()
| 75 | |
| 76 | // fillFastStart() assumes the bitReaderBytes is empty and there is at least 8 bytes to read. |
| 77 | func (b *bitReaderBytes) fillFastStart() { |
| 78 | // Do single re-slice to avoid bounds checks. |
| 79 | b.value = le.Load64(b.in, b.off-8) |
| 80 | b.bitsRead = 0 |
| 81 | b.off -= 8 |
| 82 | } |
| 83 | |
| 84 | // fill() will make sure at least 32 bits are available. |
| 85 | func (b *bitReaderBytes) fill() { |