(buf []byte, compressed bool)
| 187 | } |
| 188 | |
| 189 | func (c *BufferCache) decompressAndFlush(buf []byte, compressed bool) { |
| 190 | if !compressed { |
| 191 | c.onFlush(buf) |
| 192 | return |
| 193 | } |
| 194 | |
| 195 | c.onFlush(c.decomp.uncompressSimple(buf)) |
| 196 | } |
| 197 | |
| 198 | // flushBlocks decompresses and flushes consecutive blocks in buf, interleaving each of |
| 199 | // them with a `\n` in the decompressed buffer. |
nothing calls this directly
no test coverage detected