flate

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT, BSD-3-Clause Imports: 8 Imported by: 0

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