Lines Matching refs:dictDecoder
7 // dictDecoder implements the LZ77 sliding dictionary as used in decompression.
27 type dictDecoder struct {
36 // init initializes dictDecoder to have a sliding window dictionary of the given
39 func (dd *dictDecoder) init(size int, dict []byte) {
40 *dd = dictDecoder{hist: dd.hist}
59 func (dd *dictDecoder) histSize() int {
67 func (dd *dictDecoder) availRead() int {
72 func (dd *dictDecoder) availWrite() int {
79 func (dd *dictDecoder) writeSlice() []byte {
86 func (dd *dictDecoder) writeMark(cnt int) {
93 func (dd *dictDecoder) writeByte(c byte) {
103 func (dd *dictDecoder) writeCopy(dist, length int) int {
153 func (dd *dictDecoder) tryWriteCopy(dist, length int) int {
175 // before calling any other dictDecoder methods.
176 func (dd *dictDecoder) readFlush() []byte {