zstd_cgo.go 272 B

12345678910111213
  1. // +build cgo
  2. package sarama
  3. import "github.com/DataDog/zstd"
  4. func zstdDecompress(dst, src []byte) ([]byte, error) {
  5. return zstd.Decompress(dst, src)
  6. }
  7. func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) {
  8. return zstd.CompressLevel(dst, src, level)
  9. }