A Writer is an io.WriteCloser. Writes to a Writer are compressed and written to w.
| 34 | // A Writer is an io.WriteCloser. |
| 35 | // Writes to a Writer are compressed and written to w. |
| 36 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected