rle

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(writer io.Writer, data []byte, reference []byte) error

Compress compresses the given byte array into the given writer. The optional reference array is used as a delta basis. If provided, bytes will be skipped where the data equals the reference.

func Decompress

func Decompress(reader io.Reader, output []byte) (err error)

Decompress decompresses from the given reader and writes into the provided output buffer. The output buffer must be pre-allocated. If it contains non-zero data, this data may be preserved if the compressed data specifies to.

Types

This section is empty.

Jump to

Keyboard shortcuts

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