mlf

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagZero     = 1
	FlagNegative = 2
	FlagSkip     = 3
)
View Source
const (
	CompressModeNone    = 0xF0
	CompressModeSame    = 0xF1
	CompressModeAllZero = 0xF2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BitMap

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

func (*BitMap) Empty

func (c *BitMap) Empty() bool

func (*BitMap) Get

func (c *BitMap) Get(pos int) uint8

func (*BitMap) Init

func (c *BitMap) Init(size int)

func (*BitMap) Marshal

func (c *BitMap) Marshal(dst []byte) []byte

func (*BitMap) SetNegative

func (c *BitMap) SetNegative(pos int)

func (*BitMap) SetSkip

func (c *BitMap) SetSkip(pos int)

func (*BitMap) SetZero

func (c *BitMap) SetZero(pos int)

func (*BitMap) Unmarshal

func (c *BitMap) Unmarshal(data []byte, size int)

type Compressor

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

func (*Compressor) Encode

func (c *Compressor) Encode(dst []byte, data []float64) []byte

func (*Compressor) Prepare

func (c *Compressor) Prepare(data []float64) *EncodeContext

type Decompressor

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

func (*Decompressor) Decode

func (d *Decompressor) Decode(data []byte) []float64

type EncodeContext

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

func (*EncodeContext) AllSkip

func (ctx *EncodeContext) AllSkip() bool

func (*EncodeContext) RepeatedBlockCount

func (ctx *EncodeContext) RepeatedBlockCount() int

func (*EncodeContext) Same

func (ctx *EncodeContext) Same() bool

func (*EncodeContext) UpdateMinMax

func (ctx *EncodeContext) UpdateMinMax(f float64)

Jump to

Keyboard shortcuts

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