(src []byte)
| 28 | } |
| 29 | |
| 30 | func ZlibUncompress(src []byte) []byte { |
| 31 | b := bytes.NewReader(src) |
| 32 | var out bytes.Buffer |
| 33 | r, _ := zlib.NewReader(b) |
| 34 | defer r.Close() |
| 35 | _, _ = out.ReadFrom(r) |
| 36 | return out.Bytes() |
| 37 | } |
| 38 | |
| 39 | func ZlibCompress(data []byte) []byte { |
| 40 | zw := acquireZlibWriter() |
no test coverage detected