compress

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RLEBlockLimit = 1 << 14
)

Variables

This section is empty.

Functions

func GorillaDecoding

func GorillaDecoding(in []byte, out []byte) ([]byte, error)

func GorillaEncoding

func GorillaEncoding(in []byte, out []byte) ([]byte, error)

func SnappyDecoding

func SnappyDecoding(in, out []byte) ([]byte, error)

func SnappyEncoding

func SnappyEncoding(in []byte, out []byte) ([]byte, error)

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func GenerateContext

func GenerateContext(values []float64) *Context

func (*Context) NotCompress

func (ctx *Context) NotCompress() bool

func (*Context) RLE

func (ctx *Context) RLE() bool

func (*Context) Release

func (ctx *Context) Release()

func (*Context) Same

func (ctx *Context) Same() bool

func (*Context) Snappy

func (ctx *Context) Snappy() bool

type Float

type Float struct {
	// contains filtered or unexported fields
}

func NewFloat

func NewFloat() *Float

func (*Float) AdaptiveDecoding

func (c *Float) AdaptiveDecoding(in, out []byte) ([]byte, error)

func (*Float) AdaptiveEncoding

func (c *Float) AdaptiveEncoding(in []byte, out []byte) ([]byte, error)

type RLE

type RLE struct {
	// contains filtered or unexported fields
}

func NewRLE

func NewRLE(step int) *RLE

func (*RLE) Decoding

func (rle *RLE) Decoding(in, out []byte) ([]byte, error)

func (*RLE) Encoding

func (rle *RLE) Encoding(in []byte, out []byte) ([]byte, error)

func (*RLE) SameValueDecoding

func (rle *RLE) SameValueDecoding(in, out []byte) ([]byte, error)

func (*RLE) SameValueEncoding

func (rle *RLE) SameValueEncoding(in []byte, out []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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