compressor

package
v2.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRawCompressor

func NewRawCompressor() *raw_compressor

func NewSnappyCompressor

func NewSnappyCompressor() *snappy_compressor

func Unzip added in v2.0.1

func Unzip(t T, data []byte) ([]byte, error)

func Zip added in v2.0.1

func Zip(t T, data []byte) ([]byte, error)

Types

type Compressor

type Compressor interface {
	Zip([]byte) ([]byte, error)
	Unzip([]byte) ([]byte, error)
}

type T added in v2.0.1

type T uint16
const (
	Raw T = iota
	Snappy
)

Jump to

Keyboard shortcuts

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