decompressor

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 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 Brotli

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

Brotli is brotli typed (http encoding type "br") Decompressor.

func NewBrotli

func NewBrotli() *Brotli

NewBrotli creates new brotli typed (http encoding type "br") Decompressor.

func (*Brotli) Decompress

func (decompressor *Brotli) Decompress(dst *bytes.Buffer, src io.Reader) error

Decompress decompressing bytes from src to dst with brotli decompress algo until error occurs or end of src.

type Decompressor

type Decompressor interface {
	Decompress(to *bytes.Buffer, from io.Reader) error
}

Decompressor is the interface that wraps the Decompress method.

type Gzip

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

Gzip is gzip typed (http encoding type "gzip") Decompressor.

func NewGzip

func NewGzip() *Gzip

NewGzip creates new gzip typed (http encoding type "gzip") Decompressor.

func (*Gzip) Decompress

func (decompressor *Gzip) Decompress(dst *bytes.Buffer, src io.Reader) error

Decompress decompressing bytes from src to dst with gzip decompress algo until error occurs or end of src.

type Zlib

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

Zlib is zlib typed (http encoding type "deflate") Decompressor.

func NewZlib

func NewZlib() *Zlib

NewZlib creates new zlib typed (http encoding type "deflate") Decompressor.

func (*Zlib) Decompress

func (decompressor *Zlib) Decompress(dst *bytes.Buffer, src io.Reader) error

Decompress decompressing bytes from src to dst with zlib decompress algo until error occurs or end of src.

Jump to

Keyboard shortcuts

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