commons

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(data []byte) (compressedBytes []byte, err error)

Compress compresses data with zlib. If the compressed data is larger than the original data, the original data is used. A leading byte is used to indicate whether the data is compressed.

func Decompress

func Decompress(compressedBytes []byte) (data []byte, err error)

Decompress decompresses data with zlib. A leading byte is used to indicate whether the data is compressed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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