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

Struct Writer

gzip/gzip.go:36–47  ·  view source on GitHub ↗

A Writer is an io.WriteCloser. Writes to a Writer are compressed and written to w.

Source from the content-addressed store, hash-verified

34// A Writer is an io.WriteCloser.
35// Writes to a Writer are compressed and written to w.
36type Writer struct {
37 Header // written at first call to Write, Flush, or Close
38 w io.Writer
39 level int
40 err error
41 compressor *flate.Writer
42 digest uint32 // CRC-32, IEEE polynomial (section 8)
43 size uint32 // Uncompressed size (section 2.3.1)
44 wroteHeader bool
45 closed bool
46 buf [10]byte
47}
48
49// NewWriter returns a new Writer.
50// Writes to the returned writer are compressed and written to w.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected