compress

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrotliDncode

func BrotliDncode(data []byte) ([]byte, error)

BrotliDncode 解压brotli压缩数据

func BrotliEncode

func BrotliEncode(data []byte) []byte

BrotliEncode Brotli压缩数据 @param data 待压缩的数据

func BrotliLevelEncode

func BrotliLevelEncode(data []byte, level int) []byte

BrotliLevelEncode Brotli压缩数据 @param data 待压缩的数据 @param level 压缩等级

func FlateDecode

func FlateDecode(data []byte) ([]byte, error)

FlateDecode deflate解压数据 @param data 待解压的数据

func FlateEncode

func FlateEncode(data []byte, level int) ([]byte, error)

FlateEncode deflate压缩数据 @param data 待压缩的数据 @param level 压缩等级

func GzipDncode

func GzipDncode(data []byte) ([]byte, error)

GzipDncode 解压gzip压缩数据

func GzipEncode

func GzipEncode(data []byte) []byte

GzipEncode gzip压缩数据 @param data 待压缩的数据

func GzipLevelEncode

func GzipLevelEncode(data []byte, level int) ([]byte, error)

GzipLevelEncode gzip压缩数据 @param data 待压缩的数据 @param level 压缩等级

func ZlibDncode

func ZlibDncode(data []byte) ([]byte, error)

ZlibDncode 解压gzlib压缩数据

func ZlibEncode

func ZlibEncode(data []byte) []byte

ZlibEncode zlib压缩数据 @param data 待压缩的数据

func ZlibLevelEncode

func ZlibLevelEncode(data []byte, level int) ([]byte, error)

ZlibLevelEncode zlib压缩数据 @param data 待压缩的数据 @param level 压缩等级

Types

This section is empty.

Jump to

Keyboard shortcuts

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