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

Function init

zip/register.go:110–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108)
109
110func init() {
111 compressors.Store(Store, Compressor(func(w io.Writer) (io.WriteCloser, error) { return &nopCloser{w}, nil }))
112 compressors.Store(Deflate, Compressor(func(w io.Writer) (io.WriteCloser, error) { return newFlateWriter(w), nil }))
113
114 decompressors.Store(Store, Decompressor(io.NopCloser))
115 decompressors.Store(Deflate, Decompressor(newFlateReader))
116}
117
118// RegisterDecompressor allows custom decompressors for a specified method ID.
119// The common methods [Store] and [Deflate] are built in.

Callers

nothing calls this directly

Calls 3

newFlateWriterFunction · 0.85
DecompressorFuncType · 0.85
CompressorFuncType · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…