decompressor

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 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 {
	sync.Pool
}

func NewBrotli

func NewBrotli() *Brotli

func (*Brotli) Decompress

func (decompressor *Brotli) Decompress(target *bytes.Buffer, from io.Reader) error

type Decompressor

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

type Gzip

type Gzip struct {
	sync.Pool
}

func NewGzip

func NewGzip() *Gzip

func (*Gzip) Decompress

func (decompressor *Gzip) Decompress(target *bytes.Buffer, from io.Reader) error

type Zlib

type Zlib struct {
	sync.Pool
}

func NewZlib

func NewZlib() *Zlib

func (*Zlib) Decompress

func (decompressor *Zlib) Decompress(target *bytes.Buffer, from io.Reader) error

Jump to

Keyboard shortcuts

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