zstd

package
v1.41.0-cluster Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 2

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