zstd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(in io.Reader, out io.Writer) error

Compress input to output.

func CompressBytes

func CompressBytes(src []byte) []byte

Compress a buffer. If you have a destination buffer, the allocation in the call can also be eliminated.

func CompressFile

func CompressFile(file, to string) error

func Decompress

func Decompress(in io.Reader, out io.Writer) error

func DecompressBytes

func DecompressBytes(src []byte) ([]byte, error)

Decompress a buffer. We don't supply a destination buffer, so it will be allocated by the decoder.

func DecompressFile

func DecompressFile(locker *sync.RWMutex, file, to string) error

func ZSTDCompress

func ZSTDCompress(dst, src []byte, compressionLevel int) ([]byte, error)

func ZSTDDecompress

func ZSTDDecompress(dst, src []byte) ([]byte, error)

ZSTDDecompress decompresses a block using ZSTD algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL