compression

package
v0.4.27-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeflateGzipStream

func DeflateGzipStream(r io.Reader) (io.Reader, error)

func DeflateLZ4Stream

func DeflateLZ4Stream(r io.Reader) (io.Reader, error)

func DeflateStream

func DeflateStream(name string, r io.Reader) (io.Reader, error)

func InflateGzipStream

func InflateGzipStream(r io.Reader) (io.Reader, error)

func InflateLZ4Stream

func InflateLZ4Stream(r io.Reader) (io.Reader, error)

func InflateStream

func InflateStream(name string, r io.Reader) (io.Reader, error)

Types

type Configuration

type Configuration struct {
	Algorithm  string
	Level      int  // Compression level (-1 for default)
	WindowSize int  // Window size for algorithms like zstd or Brotli
	ChunkSize  int  // Chunk size for streaming compression
	BlockSize  int  // Block size for block-based algorithms like bzip2
	EnableCRC  bool // Enable/disable checksum (e.g., gzip CRC32, zstd)
}

func LookupDefaultConfiguration

func LookupDefaultConfiguration(algorithm string) (*Configuration, error)

func NewDefaultConfiguration

func NewDefaultConfiguration() *Configuration

Jump to

Keyboard shortcuts

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