luci: go.chromium.org/luci/gae/internal/zstd Index | Files

package zstd

import "go.chromium.org/luci/gae/internal/zstd"

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

Index

Package Files

zstd.go

func DecodeAll Uses

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 Uses

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.

Package zstd imports 1 packages (graph) and is imported by 2 packages. Updated 2021-01-21. Refresh now. Tools for package owners.