zstdcompress

package
v0.0.0-...-dd163a0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CompressThreshold = 1024

Variables

This section is empty.

Functions

func Compress

func Compress(src []byte) []byte

Compress a buffer. If you have a destination buffer, the allocation in the call can also be eliminated.

func Decompress

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

func NewZstdCompressor

func NewZstdCompressor() connect.Compressor

func NewZstdDecompressor

func NewZstdDecompressor() connect.Decompressor

Types

This section is empty.

Jump to

Keyboard shortcuts

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