gzip

package
v3.0.0-...-6ddf7be Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

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