compress

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlateCompressor

type FlateCompressor struct {
	// The level of compression
	Level int
}

compressor of falte algorithm

func NewDefaultFlateCompressor

func NewDefaultFlateCompressor() *FlateCompressor

func (*FlateCompressor) CompressString

func (c *FlateCompressor) CompressString(v string) (result []byte, err error)

func (*FlateCompressor) DecompressToString

func (c *FlateCompressor) DecompressToString(compressedContent []byte) (string, error)

func (*FlateCompressor) MustCompressString

func (c *FlateCompressor) MustCompressString(v string) []byte

func (*FlateCompressor) MustDecompressToString

func (c *FlateCompressor) MustDecompressToString(compressedContent []byte) string

Jump to

Keyboard shortcuts

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