zstd

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZstdCompressor

type ZstdCompressor struct {
	// contains filtered or unexported fields
}

func NewCompressor

func NewCompressor() *ZstdCompressor

func (*ZstdCompressor) Compress

func (c *ZstdCompressor) Compress(src []byte) []byte

this will return a zstd format data.

type ZstdDecompressor

type ZstdDecompressor struct {
	// contains filtered or unexported fields
}

func NewDecompressor

func NewDecompressor() *ZstdDecompressor

func (*ZstdDecompressor) Decompress

func (c *ZstdDecompressor) Decompress(dst, src []byte) []byte

this will return a original data.

Jump to

Keyboard shortcuts

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