MCPcopy
hub / github.com/klauspost/compress / fillFastStart

Method fillFastStart

huff0/bitreader.go:77–82  ·  view source on GitHub ↗

fillFastStart() assumes the bitReaderBytes is empty and there is at least 8 bytes to read.

()

Source from the content-addressed store, hash-verified

75
76// fillFastStart() assumes the bitReaderBytes is empty and there is at least 8 bytes to read.
77func (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.
85func (b *bitReaderBytes) fill() {

Callers 1

initMethod · 0.95

Calls 1

Load64Function · 0.92

Tested by

no test coverage detected