comp

package
v0.0.0-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Algorithms

func Algorithms() []string

func Compress

func Compress(data []byte, algorithm Algorithm) ([]byte, error)

Compress compresses the given data using the specified algorithm.

func Decompress

func Decompress(data []byte, algorithm Algorithm) ([]byte, error)

Decompress decompresses the given data using the specified algorithm.

Types

type Algorithm

type Algorithm uint

Algorithm is the compression algorithm type

const (
	LZ4         Algorithm = 0x100
	LZ4_RAW     Algorithm = 0x101
	ZLIB        Algorithm = 0x205
	LZMA        Algorithm = 0x306
	LZFSE       Algorithm = 0x801
	LZFSE_IBOOT Algorithm = 0x891
	LZBITMAP    Algorithm = 0x702
	BROTLI      Algorithm = 0xB02
)

func Lookup

func Lookup(name string) (Algorithm, error)

func (Algorithm) String

func (a Algorithm) String() string

Jump to

Keyboard shortcuts

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