compress

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package compress provides compressor interface

Package compress provides compress functions

Package compress provides compress functions

Package compress provides compress functions

Package compress provides compress functions

Package compress provides compress functions

Package compress provides compress functions

Package compress provides compress functions

Package compress provides compress functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	CompressVector(vector []float32) (bytes []byte, err error)
	DecompressVector(bytes []byte) (vector []float32, err error)
	Reader(src io.ReadCloser) (io.ReadCloser, error)
	Writer(dst io.WriteCloser) (io.WriteCloser, error)
}

func NewGob

func NewGob(opts ...GobOption) (Compressor, error)

func NewGzip

func NewGzip(opts ...GzipOption) (Compressor, error)

func NewLZ4

func NewLZ4(opts ...LZ4Option) (Compressor, error)

func NewZstd

func NewZstd(opts ...ZstdOption) (Compressor, error)

type GobOption

type GobOption func(c *gobCompressor) error

type GzipOption

type GzipOption func(c *gzipCompressor) error

func WithGzipCompressionLevel

func WithGzipCompressionLevel(level int) GzipOption

func WithGzipGob

func WithGzipGob(opts ...GobOption) GzipOption

type LZ4Option

type LZ4Option func(c *lz4Compressor) error

func WithLZ4CompressionLevel

func WithLZ4CompressionLevel(level int) LZ4Option

func WithLZ4Gob

func WithLZ4Gob(opts ...GobOption) LZ4Option

type ZstdOption

type ZstdOption func(c *zstdCompressor) error

func WithZstdCompressionLevel

func WithZstdCompressionLevel(level int) ZstdOption

func WithZstdGob

func WithZstdGob(opts ...GobOption) ZstdOption

Jump to

Keyboard shortcuts

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