Scott Baker | e7144bc | 2019-10-01 14:16:47 -0700 | [diff] [blame] | 1 | // +build cgo |
2 | |||||
3 | package sarama | ||||
4 | |||||
5 | import "github.com/DataDog/zstd" | ||||
6 | |||||
7 | func zstdDecompress(dst, src []byte) ([]byte, error) { | ||||
8 | return zstd.Decompress(dst, src) | ||||
9 | } | ||||
10 | |||||
11 | func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) { | ||||
12 | return zstd.CompressLevel(dst, src, level) | ||||
13 | } |