zx0

package
v0.0.0-...-004e7fe Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INITIAL_OFFSET = 1
	MAX_SCALE      = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Bits   int
	Index  int
	Offset int
	Chain  *Block
}

type Compressor

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

func NewCompressor

func NewCompressor() *Compressor

func (*Compressor) Compress

func (c *Compressor) Compress(optimal *Block, input []byte, skip int, backwardsMode, invertMode bool, delta []int) []byte

type Decompressor

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

func NewDecompressor

func NewDecompressor() *Decompressor

func (*Decompressor) Decompress

func (d *Decompressor) Decompress(input []byte, backwardsMode, invertMode bool) ([]byte, error)

type Job

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

type JobResult

type JobResult struct {
	Block *Block
	// contains filtered or unexported fields
}

type Optimizer

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

func NewOptimizer

func NewOptimizer() *Optimizer

func (*Optimizer) Optimize

func (o *Optimizer) Optimize(input []byte, skip, offsetLimit, threads int, verbose bool) *Block

type State

type State int
const (
	COPY_LITERALS State = iota
	COPY_FROM_LAST_OFFSET
	COPY_FROM_NEW_OFFSET
	COPY_END
	COPY_UNKNOWN
)

func (State) Process

func (s State) Process(d *Decompressor) State

Jump to

Keyboard shortcuts

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