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

Method bytes

pkg/buffercache/compressor.go:109–111  ·  view source on GitHub ↗

bytes returns the decompressor internal buffer, resliced up until byte n.

(n int)

Source from the content-addressed store, hash-verified

107
108// bytes returns the decompressor internal buffer, resliced up until byte n.
109func (d *decompressor) bytes(n int) []byte {
110 return d.buf[:n]
111}
112
113// copy copies buf at index pos of the internal buffer, growing it if necessary.
114func (d *decompressor) copy(pos int, buf []byte) {

Callers 1

flushBlocksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected