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) }
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 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 WithLZ4Gob ¶
type ZstdOption ¶
type ZstdOption func(c *zstdCompressor) error
func WithZstdCompressionLevel ¶
func WithZstdCompressionLevel(level int) ZstdOption
func WithZstdGob ¶
func WithZstdGob(opts ...GobOption) ZstdOption
Click to show internal directories.
Click to hide internal directories.