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

Interface Resetter

flate/inflate.go:71–75  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

69// to switch to a new underlying Reader. This permits reusing a ReadCloser
70// instead of allocating a new one.
71type 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),

Callers

nothing calls this directly

Implementers 15

fastGenflate/fast_encoder.go
fastEncL5Windowflate/level5.go
Writerflate/deflate.go
decompressorflate/inflate.go
statelessWriterflate/stateless.go
tokensflate/token.go
doubleFastEncoderzstd/enc_dfast.go
doubleFastEncoderDictzstd/enc_dfast.go
Decoderzstd/decoder.go
Encoderzstd/encoder.go
betterFastEncoderzstd/enc_better.go
betterFastEncoderDictzstd/enc_better.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…