File: zstd_fallback.go

package info (click to toggle)
golang-github-shopify-sarama 1.22.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,728 kB
  • sloc: sh: 112; makefile: 43
file content (17 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +build !cgo

package sarama

import (
	"errors"
)

var errZstdCgo = errors.New("zstd compression requires building with cgo enabled")

func zstdDecompress(dst, src []byte) ([]byte, error) {
	return nil, errZstdCgo
}

func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) {
	return nil, errZstdCgo
}