flate

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT, BSD-3-Clause Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

This package is a flate/gzip compressor that reuses the matchfinder package that I’ve been developing for brotli. It is copied and adapted from the standard library compress/flate package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEncoder

func NewEncoder() matchfinder.Encoder

func NewGZIPEncoder

func NewGZIPEncoder() matchfinder.Encoder

func NewGZIPWriter

func NewGZIPWriter(w io.Writer, level int) *matchfinder.Writer

NewGZIPWriter returns a new matchfinder.Writer that compresses data at the given level, in gzip encoding. Levels 1–9 are available; levels outside this range will be replaced by the closest level available.

func NewWriter

func NewWriter(w io.Writer, level int) *matchfinder.Writer

NewWriter returns a new matchfinder.Writer that compresses data at the given level, in flate encoding. Levels 1–9 are available; levels outside this range will be replaced with the closest level available.

Types

This section is empty.

Jump to

Keyboard shortcuts

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