flate

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	Level int
}

Codec is a Compressor that is backed by compress/flate package from the standard library. The zero-value is usable but will not perform any compression. The compression level can be configured by setting the Level field. The valid values are below:

NoCompression      = 0
BestSpeed          = 1
BestCompression    = 9
DefaultCompression = -1

func (Codec) Deflate

func (c Codec) Deflate(data []byte) ([]byte, error)

func (Codec) Flate

func (c Codec) Flate(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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