zstdc

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package zstdc implements the encoded.Codec interface using zstd compression.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

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

A Codec implements the encoded.Codec interface to provide zstd compression of blob data.

func New

func New() Codec

New returns a new zstd codec with default compression settings.

func (Codec) Decode

func (c Codec) Decode(w io.Writer, src []byte) error

Decode decompresses src via zstd and writes it to w.

func (Codec) Encode

func (c Codec) Encode(w io.Writer, src []byte) error

Encode compresses src via zstd and writes it to w.

Jump to

Keyboard shortcuts

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