zstd

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(in []byte) ([]byte, error)

Decode returns the decoded version of the encoded byte slice.

func Decompress added in v2.0.2

func Decompress(b []byte) []byte

Decompress returns decompressed bytes if b is zstd-framed, otherwise returns b unchanged.

func Detect added in v2.0.2

func Detect(in []byte) bool

Detect reports whether in begins with an RFC 8878 Zstd frame magic

func Encode

func Encode(in []byte) ([]byte, error)

Encode returns the encoded version of the byte slice

func NewDecoder

func NewDecoder(r io.Reader) reader.ReadCloserResetter

func NewEncoder

func NewEncoder(w io.Writer, level int) io.WriteCloser

Types

This section is empty.

Jump to

Keyboard shortcuts

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