zstd

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package zstd holds zstd encoders and decoders used by the GAE library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAll

func DecodeAll(input, dst []byte) ([]byte, error)

DecodeAll allows stateless decoding of a blob of bytes.

Output will be appended to dst, so if the destination size is known you can pre-allocate the destination slice to avoid allocations. DecodeAll can be used concurrently.

func EncodeAll

func EncodeAll(src, dst []byte) []byte

EncodeAll will encode all input in src and append it to dst.

This function can be called concurrently, but each call will only run on a single goroutine. If empty input is given, nothing is returned. Data compressed with EncodeAll can be decoded via DecodeAll.

Types

This section is empty.

Jump to

Keyboard shortcuts

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