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

Method init

pkg/buffercache/compressor.go:19–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func (c *compressor) init() {
20 c.ht = make([]int, lz4TableSize)
21 c.buf = make([]byte, compressedBufferSize)
22}
23
24// compress compresses b and returns the compressed buffer. The compressed
25// buffer is only valid until the next call to compres.

Callers 4

initFunction · 0.95
Benchmark_compressorFunction · 0.95
NewFunction · 0.45

Calls

no outgoing calls

Tested by 3

initFunction · 0.76
Benchmark_compressorFunction · 0.76