zstd_fallback.go 315 B

1234567891011121314151617
  1. // +build !cgo
  2. package sarama
  3. import (
  4. "errors"
  5. )
  6. var errZstdCgo = errors.New("zstd compression requires building with cgo enabled")
  7. func zstdDecompress(dst, src []byte) ([]byte, error) {
  8. return nil, errZstdCgo
  9. }
  10. func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) {
  11. return nil, errZstdCgo
  12. }