Resetter resets a ReadCloser returned by NewReader or NewReaderDict to to switch to a new underlying Reader. This permits reusing a ReadCloser instead of allocating a new one.
| 69 | // to switch to a new underlying Reader. This permits reusing a ReadCloser |
| 70 | // instead of allocating a new one. |
| 71 | type Resetter interface { |
| 72 | // Reset discards any buffered data and resets the Resetter as if it was |
| 73 | // newly initialized with the given reader. |
| 74 | Reset(r io.Reader, dict []byte) error |
| 75 | } |
| 76 | |
| 77 | // The data structure for decoding Huffman tables is based on that of |
| 78 | // zlib. There is a lookup table of a fixed bit width (huffmanChunkBits), |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…