flate

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package flate provides a mockable wrapper for compress/flate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) NewReader

func (*Impl) NewReader(r io.Reader) io.ReadCloser

func (*Impl) NewReaderDict

func (*Impl) NewReaderDict(r io.Reader, dict []byte) io.ReadCloser

func (*Impl) NewWriter

func (*Impl) NewWriter(w io.Writer, level int) (*flate.Writer, error)

func (*Impl) NewWriterDict

func (*Impl) NewWriterDict(w io.Writer, level int, dict []byte) (*flate.Writer, error)

type Interface

type Interface interface {
	NewReader(r io.Reader) io.ReadCloser
	NewReaderDict(r io.Reader, dict []byte) io.ReadCloser
	NewWriter(w io.Writer, level int) (*flate.Writer, error)
	NewWriterDict(w io.Writer, level int, dict []byte) (*flate.Writer, error)
}

Jump to

Keyboard shortcuts

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