compression

package
v0.0.0-...-1ba95a4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// None no compression
	None string = "none"

	// Snappy compression
	Snappy string = "snappy"

	// LZ4 compression
	LZ4 string = "lz4"
)

Variables

This section is empty.

Functions

func Decode

func Decode(cc string, data []byte) ([]byte, error)

Decode the given data by the given compression codec.

func Encode

func Encode(cc string, data []byte) ([]byte, error)

Encode the given data by the given compression codec.

func Supported

func Supported(cc string) bool

Supported return true if the given compression is supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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