gzip

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress added in v0.7.5

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

Compress performs gzip compression and returns the result. Returns error if it can't compress the input bytes

func IsGzipped

func IsGzipped(src []byte) bool

IsGzipped returns true iff the input is gzipped.

func Uncompress

func Uncompress(src []byte, maxSize int64) ([]byte, error)

Uncompress performs gzip uncompression and returns the result. Returns error if the input file is not in gzipped format or if the result's size exceeds maxSize.

Types

This section is empty.

Jump to

Keyboard shortcuts

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