gzip

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm struct {
}

Algorithm implements gzip compression/decompression.

func New

func New() *Algorithm

New creates new gzip algorithm instance.

func (*Algorithm) Accept

func (a *Algorithm) Accept(alg string) bool

Accept algorithm.

func (*Algorithm) Close

func (a *Algorithm) Close() error

Close closes open resources.

func (*Algorithm) Compress

func (a *Algorithm) Compress(data []byte) ([]byte, error)

Compress will compress data using gzip.

func (*Algorithm) Decompress

func (a *Algorithm) Decompress(data []byte) ([]byte, error)

Decompress will decompress compressed data.

Jump to

Keyboard shortcuts

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