codecs

package
v2.0.205+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 7 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 io.WriteCloser

Compressor is a WriteCloser where Close closes and releases Compressor state, potentially flushing final content to the underlying Writer, but does not Close or otherwise affect the underlying Writer.

func NewCodecWriter

func NewCodecWriter(w io.Writer, codec pb.CompressionCodec) (Compressor, error)

NewCodecWriter returns a Compressor wrapping the Writer encoding with CompressionCodec.

type Decompressor

type Decompressor io.ReadCloser

Decompressor is a ReadCloser where Close closes and releases Decompressor state, but does not Close or affect the underlying Reader.

func NewCodecReader

func NewCodecReader(r io.Reader, codec pb.CompressionCodec) (Decompressor, error)

NewCodecReader returns a Decompressor of the Reader encoded with CompressionCodec.

Jump to

Keyboard shortcuts

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