zstd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package zstd compression and decompression functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

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

Compressor implements Compressor using zstd compression.

func NewCompressor

func NewCompressor(opts ...zstd.EOption) (*Compressor, error)

NewCompressor creates new Compressor.

func (*Compressor) Compress

func (c *Compressor) Compress(src, dest []byte) ([]byte, error)

Compress data using zstd.

func (*Compressor) Decompress

func (c *Compressor) Decompress(src, dest []byte) ([]byte, error)

Decompress data using zstd.

func (*Compressor) DecompressedSize

func (c *Compressor) DecompressedSize(src []byte) (int64, error)

DecompressedSize returns the size of the decompressed data.

Jump to

Keyboard shortcuts

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