compress

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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

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

func UnCompress

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

func UnCompressTo

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

Types

type Flate

type Flate struct {
}

Flate

func (*Flate) UnCompressTo

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

type Gzip

type Gzip struct {
}

Gzip

func (*Gzip) UnCompressTo

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

type Zlib

type Zlib struct {
}

Zlib

func (*Zlib) UnCompressTo

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