compress

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 5 Imported by: 0

README

Compress

Go doc

compress 提供了一些用于压缩和解压缩数据的函数。

目录导航

列出了该 package 下所有的函数及类型定义,可通过目录导航进行快捷跳转 ❤️

展开 / 折叠目录导航

包级函数定义

函数名称 描述
GZipCompress 对数据进行GZip压缩,返回bytes.Buffer和错误信息
GZipUnCompress 对已进行GZip压缩的数据进行解压缩,返回字节数组及错误信息
TARCompress 对数据进行TAR压缩,返回bytes.Buffer和错误信息
TARUnCompress 对已进行TAR压缩的数据进行解压缩,返回字节数组及错误信息
ZIPCompress 对数据进行ZIP压缩,返回bytes.Buffer和错误信息
ZIPUnCompress 对已进行ZIP压缩的数据进行解压缩,返回字节数组及错误信息

详情信息

func GZipCompress(data []byte) (bytes.Buffer, error)

对数据进行GZip压缩,返回bytes.Buffer和错误信息


func GZipUnCompress(dataByte []byte) ([]byte, error)

对已进行GZip压缩的数据进行解压缩,返回字节数组及错误信息


func TARCompress(data []byte) (bytes.Buffer, error)

对数据进行TAR压缩,返回bytes.Buffer和错误信息


func TARUnCompress(dataByte []byte) ([]byte, error)

对已进行TAR压缩的数据进行解压缩,返回字节数组及错误信息


func ZIPCompress(data []byte) (bytes.Buffer, error)

对数据进行ZIP压缩,返回bytes.Buffer和错误信息


func ZIPUnCompress(dataByte []byte) ([]byte, error)

对已进行ZIP压缩的数据进行解压缩,返回字节数组及错误信息


Documentation

Overview

Package compress 提供了一些用于压缩和解压缩数据的函数。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GZipCompress

func GZipCompress(data []byte) (bytes.Buffer, error)

GZipCompress 对数据进行GZip压缩,返回bytes.Buffer和错误信息

func GZipUnCompress

func GZipUnCompress(dataByte []byte) ([]byte, error)

GZipUnCompress 对已进行GZip压缩的数据进行解压缩,返回字节数组及错误信息

func TARCompress added in v0.4.1

func TARCompress(data []byte) (bytes.Buffer, error)

TARCompress 对数据进行TAR压缩,返回bytes.Buffer和错误信息

func TARUnCompress added in v0.4.1

func TARUnCompress(dataByte []byte) ([]byte, error)

TARUnCompress 对已进行TAR压缩的数据进行解压缩,返回字节数组及错误信息

func ZIPCompress added in v0.4.1

func ZIPCompress(data []byte) (bytes.Buffer, error)

ZIPCompress 对数据进行ZIP压缩,返回bytes.Buffer和错误信息

func ZIPUnCompress added in v0.4.1

func ZIPUnCompress(dataByte []byte) ([]byte, error)

ZIPUnCompress 对已进行ZIP压缩的数据进行解压缩,返回字节数组及错误信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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