GzipEncoder compresses the buffer using gzip at the default level.
| 168 | |
| 169 | // GzipEncoder compresses the buffer using gzip at the default level. |
| 170 | type GzipEncoder struct { |
| 171 | pwriter *pgzip.Writer |
| 172 | writer *gzip.Writer |
| 173 | buf *bytes.Buffer |
| 174 | } |
| 175 | |
| 176 | func NewGzipEncoder(options ...EncodingOption) (*GzipEncoder, error) { |
| 177 | cfg := encoderConfig{level: gzip.DefaultCompression} |
nothing calls this directly
no outgoing calls
no test coverage detected