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

FuncType Compressor

zip/register.go:20–20  ·  view source on GitHub ↗

A Compressor returns a new compressing writer, writing to w. The WriteCloser's Close method must be used to flush pending data to w. The Compressor itself must be safe to invoke from multiple goroutines simultaneously, but each returned writer will be used only by one goroutine at a time.

func(w io.Writer) (io.WriteCloser, error)

Source from the content-addressed store, hash-verified

18// simultaneously, but each returned writer will be used only by
19// one goroutine at a time.
20type Compressor func(w io.Writer) (io.WriteCloser, error)
21
22// A Decompressor returns a new decompressing reader, reading from r.
23// The [io.ReadCloser]'s Close method must be used to release associated resources.

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…