compressor

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoCompression      = gzip.NoCompression
	BestSpeed          = gzip.BestSpeed
	BestCompression    = gzip.BestCompression
	DefaultCompression = gzip.DefaultCompression
	HuffmanOnly        = gzip.HuffmanOnly
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor struct {
	// contains filtered or unexported fields
}

func New

func New(level int) *Compressor

func (*Compressor) Compress

func (c *Compressor) Compress(data []byte) (compressedData []byte, err error)

func (*Compressor) Decompress

func (c *Compressor) Decompress(data []byte) (decompressedData []byte, err error)

type Interface

type Interface interface {
	Compress(decompressedData []byte) (compressedData []byte, err error)
	Decompress(compressedData []byte) (decompressedData []byte, err error)
}

Jump to

Keyboard shortcuts

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