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

Function ZipDecompressor

zstd/zip.go:139–141  ·  view source on GitHub ↗

ZipDecompressor returns a decompressor that can be registered with zip libraries. See ZipCompressor for example. Options can be specified. WithDecoderConcurrency(1) is forced, and by default a 128MB maximum decompression window is specified. The window size can be overridden if required.

(opts ...DOption)

Source from the content-addressed store, hash-verified

137// and by default a 128MB maximum decompression window is specified.
138// The window size can be overridden if required.
139func ZipDecompressor(opts ...DOption) func(r io.Reader) io.ReadCloser {
140 return newZipReader(opts...)
141}

Callers 1

ExampleZipCompressorFunction · 0.92

Calls 1

newZipReaderFunction · 0.85

Tested by 1

ExampleZipCompressorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…