compression

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCorruptedError added in v0.8.0

func IsCorruptedError(err error) bool

IsCorruptedError checks if the error belongs to the list of corrupted errors from zstd lib.

func NewWriter

func NewWriter(w io.WriteCloser, level int) (io.WriteCloser, error)

NewWriter creates a new instance of a compression writer with a given compression level. Every Write to it is compressed and passed to an inner writer. On Close, both writers are closed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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