MCPcopy Create free account
hub / github.com/IBM/sarama / zstdDecompress

Function zstdDecompress

zstd.go:111–117  ·  view source on GitHub ↗
(params ZstdDecoderParams, dst, src []byte, maxDecodedSize int)

Source from the content-addressed store, hash-verified

109}
110
111func zstdDecompress(params ZstdDecoderParams, dst, src []byte, maxDecodedSize int) ([]byte, error) {
112 dec, err := getDecoder(params, maxDecodedSize)
113 if err != nil {
114 return nil, err
115 }
116 return dec.DecodeAll(src, dst)
117}
118
119func zstdCompress(params ZstdEncoderParams, dst, src []byte) ([]byte, error) {
120 enc, err := getZstdEncoder(params)

Callers 1

boundedZstdDecodeFunction · 0.85

Calls 1

getDecoderFunction · 0.85

Tested by

no test coverage detected