compress

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress added in v1.0.1

func Compress(compressType, flag int, src []byte) ([]byte, error)

func UnCompress added in v1.0.1

func UnCompress(compressType int, src []byte) (ret []byte, err error)

func UnCompressTo added in v1.6.3

func UnCompressTo(compressType int, src []byte, buf *bytes.Buffer) (err error)

Types

type Flate

type Flate struct {
}

Flate

func (*Flate) UnCompressTo added in v1.6.3

func (f *Flate) UnCompressTo(compressSrc []byte, buf *bytes.Buffer) error

type Gzip

type Gzip struct {
}

Gzip

func (*Gzip) UnCompressTo added in v1.6.3

func (g *Gzip) UnCompressTo(compressSrc []byte, buf *bytes.Buffer) error

type Zlib

type Zlib struct {
}

Zlib

func (*Zlib) UnCompressTo added in v1.6.3

func (z *Zlib) UnCompressTo(compressSrc []byte, buf *bytes.Buffer) error

Jump to

Keyboard shortcuts

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