compressor

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGzipReader

func GetGzipReader(r io.Reader) (*gzip.Reader, error)

func GetSnappyReader

func GetSnappyReader(r io.Reader) *snappy.Reader

func NewGzipEncoder

func NewGzipEncoder(level int) *gzipEncoder

func PutGzipReader

func PutGzipReader(zr *gzip.Reader)

func PutSnappyReader

func PutSnappyReader(zr *snappy.Reader)

Types

type Compressor

type Compressor interface {
	Compress(buf []byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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