compress

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	io.ReadWriter
}

Compressor represents a stream compression method.

type ZlibCompressor

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

ZlibCompressor represents zlib stream compressor.

func NewZlibCompressor

func NewZlibCompressor(reader io.Reader, writer io.Writer, level config.CompressionLevel) *ZlibCompressor

NewZlibCompressor returns a new zlib compression method.

func (*ZlibCompressor) Read

func (z *ZlibCompressor) Read(p []byte) (int, error)

func (*ZlibCompressor) Write

func (z *ZlibCompressor) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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