MCPcopy Create free account
hub / github.com/AdRoll/baker / decompressAndFlush

Method decompressAndFlush

pkg/buffercache/cache.go:189–196  ·  view source on GitHub ↗
(buf []byte, compressed bool)

Source from the content-addressed store, hash-verified

187}
188
189func (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.

Callers

nothing calls this directly

Calls 1

uncompressSimpleMethod · 0.80

Tested by

no test coverage detected