kmgCompress

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlateMustCompress

func FlateMustCompress(inb []byte) (outb []byte)

flate压缩,panic+buffer实现 会由于

func FlateMustUnCompress

func FlateMustUnCompress(inb []byte) (outb []byte)

func FlateUnCompress

func FlateUnCompress(inb []byte) (outb []byte, err error)

func GzipMustCompress

func GzipMustCompress(inb []byte) (outb []byte)

此处不会panic

func GzipMustUnCompress

func GzipMustUnCompress(inb []byte) (outb []byte)

func ZipUncompressFromBytesToDir

func ZipUncompressFromBytesToDir(zipB []byte, dir string, trimPrefix string) (err error)

func ZlibMustCompress

func ZlibMustCompress(inb []byte) (outb []byte)

正常使用应该不会报错.

func ZlibMustUnCompress

func ZlibMustUnCompress(inb []byte) (outb []byte)

func ZlibUnCompress

func ZlibUnCompress(inb []byte) (outb []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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