compression

package
v0.0.0-...-99d1211 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(src []byte) []byte

Compress compress []byte and returns []byte with compressed data

func Decompress

func Decompress(src []byte) ([]byte, error)

Decompress []byte and returns []byte with decompressed data

func NewLZ4Compressor

func NewLZ4Compressor() lz4Compressor

NewLZ4Compressor returns new lz4Compressor

func NewSnappyCompressor

func NewSnappyCompressor() snappyCompressor

NewSnappyCompressor returns new snappyCompressor

func SetCompressor

func SetCompressor(c Compressor)

SetCompressor sets compressor

Types

type Compressor

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

Compressor compression interface

Jump to

Keyboard shortcuts

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