decompress

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder added in v0.7.1

type Decoder interface {
	//Decodes a chunk of data all at once.
	Decode(in []byte) ([]byte, error)
}

type Decompressor

type Decompressor interface {
	//Creates a new decompressor reading from src.
	Reader(src io.Reader) (io.ReadCloser, error)
}

type GZip

type GZip struct{}

func (GZip) Reader

func (g GZip) Reader(src io.Reader) (io.ReadCloser, error)

func (GZip) Reset

func (g GZip) Reset(old, src io.Reader) error

type Lz4

type Lz4 struct{}

func (Lz4) Reader

func (l Lz4) Reader(r io.Reader) (io.ReadCloser, error)

func (Lz4) Reset

func (l Lz4) Reset(old, src io.Reader) error

type Lzma

type Lzma struct{}

func (Lzma) Reader

func (l Lzma) Reader(r io.Reader) (io.ReadCloser, error)

type Lzo

type Lzo struct{}

func (Lzo) Reader

func (l Lzo) Reader(r io.Reader) (io.ReadCloser, error)

type Resetable added in v0.7.1

type Resetable interface {
	//Reset attempts to re-use an old decompressor with new data.
	//Will return ErrNotResetable if not Resetable().
	//Must ALWAYS be provided with a reader created with Reader.
	Reset(old, src io.Reader) error
}

type Xz

type Xz struct{}

func (Xz) Reader

func (x Xz) Reader(r io.Reader) (io.ReadCloser, error)

func (Xz) Reset

func (x Xz) Reset(old, src io.Reader) error

type Zstd

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

func (Zstd) Decode

func (z Zstd) Decode(in []byte) ([]byte, error)

func (Zstd) Reader

func (z Zstd) Reader(src io.Reader) (io.ReadCloser, error)

func (Zstd) Reset

func (z Zstd) Reset(old, src io.Reader) error

Jump to

Keyboard shortcuts

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