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

Function NewWriter

zip/writer.go:45–47  ·  view source on GitHub ↗

NewWriter returns a new [Writer] writing a zip file to w.

(w io.Writer)

Source from the content-addressed store, hash-verified

43
44// NewWriter returns a new [Writer] writing a zip file to w.
45func NewWriter(w io.Writer) *Writer {
46 return &Writer{cw: &countWriter{w: bufio.NewWriter(w)}}
47}
48
49// SetOffset sets the offset of the beginning of the zip data within the
50// underlying writer. It should be used when the zip data is appended to an

Callers 15

Test_seqdec_decoderFunction · 0.92
ExampleWriterFunction · 0.92
TestCVE202133196Function · 0.70
TestInsecurePathsFunction · 0.70
TestNameDecoderFunction · 0.70
TestNameDecoderDefaultFunction · 0.70

Calls

no outgoing calls

Tested by 15

Test_seqdec_decoderFunction · 0.74
ExampleWriterFunction · 0.74
TestCVE202133196Function · 0.56
TestInsecurePathsFunction · 0.56
TestNameDecoderFunction · 0.56
TestNameDecoderDefaultFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…