zstd

package
v1.76.0-cluster Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressLevel

func CompressLevel(dst, src []byte, compressionLevel int) []byte

CompressLevel appends compressed src to dst and returns the result.

The given compressionLevel is used for the compression.

func Decompress

func Decompress(dst, src []byte) ([]byte, error)

Decompress appends decompressed src to dst and returns the result.

Types

type Reader

type Reader = gozstd.Reader

Reader is zstd reader

func NewReader

func NewReader(r io.Reader) *Reader

NewReader returns zstd reader for the given r.

type Writer

type Writer = gozstd.Writer

Writer is zstd writer

func NewWriterLevel

func NewWriterLevel(w io.Writer, level int) *Writer

NewWriterLevel returns zstd writer for the given w and level.

Jump to

Keyboard shortcuts

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