compress

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZstdCompress

func ZstdCompress(data []byte) (compressedData []byte)

ZstdCompress compresses data using zstd compression. If the data is not compressible, it will be returned as is with a leading 0. If the data is compressible, it will be returned with a leading 1.

func ZstdDecompress

func ZstdDecompress(compressedData []byte) (data []byte, err error)

ZstdDecompress decompresses data using zstd compression. It strips the leading 0 or 1 and decompresses the data if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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