compress

package
v0.0.0-...-3976360 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCompression          = errors.New("leveldb: no compression")
	ErrUnsupportedCompression = errors.New("leveldb: unsupported compression")
)

Functions

func Decode

func Decode(typ Type, dst, src []byte) ([]byte, error)

func Encode

func Encode(typ Type, dst, src []byte) ([]byte, error)

Types

type Type

type Type int
const (
	NoCompression     Type = 0
	SnappyCompression Type = 1
)

Jump to

Keyboard shortcuts

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