zstd

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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