MCPcopy
hub / github.com/IBM/sarama / zstdCompress

Function zstdCompress

zstd.go:113–118  ·  view source on GitHub ↗
(params ZstdEncoderParams, dst, src []byte)

Source from the content-addressed store, hash-verified

111}
112
113func zstdCompress(params ZstdEncoderParams, dst, src []byte) ([]byte, error) {
114 enc := getZstdEncoder(params)
115 out := enc.EncodeAll(src, dst)
116 releaseEncoder(params, enc)
117 return out, nil
118}

Callers 2

compressFunction · 0.85

Calls 2

getZstdEncoderFunction · 0.85
releaseEncoderFunction · 0.85

Tested by 1