PutZlibReader puts z back into its sync.Pool, first closing the reader. The Byte slice dictionary is also put back into its sync.Pool.
(z ZLibReader)
| 52 | // PutZlibReader puts z back into its sync.Pool, first closing the reader. |
| 53 | // The Byte slice dictionary is also put back into its sync.Pool. |
| 54 | func PutZlibReader(z ZLibReader) { |
| 55 | z.Reader.Close() |
| 56 | PutByteSlice(z.dict) |
| 57 | zlibReader.Put(z) |
| 58 | } |
| 59 | |
| 60 | // GetZlibWriter returns a *zlib.Writer that is managed by a sync.Pool. |
| 61 | // Returns a writer that is reset with w and ready for use. |
searching dependent graphs…