zipx

package
v0.11.11 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* @Author: kamalyes 501893067@qq.com * @Date: 2024-10-24 11:25:16 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-11-08 12:09:00 * @FilePath: \go-toolbox\pkg\zipx\zlib.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipCompress

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

GzipCompress 使用 gzip 压缩数据

func GzipDecompress

func GzipDecompress(compressedData []byte) ([]byte, error)

GzipDecompress 解压缩 gzip 压缩的数据

func MultiGZipCompress added in v0.11.5

func MultiGZipCompress(data []byte, times int) ([]byte, error)

MultiGZipCompress 支持多次压缩

func MultiGZipDecompress added in v0.11.5

func MultiGZipDecompress(compressedData []byte, times int) ([]byte, error)

MultiGZipDecompress 支持多次解压缩

func MultiZlibCompress added in v0.11.5

func MultiZlibCompress(data []byte, times int) ([]byte, error)

MultiZlibCompress 支持多次压缩

func MultiZlibDecompress added in v0.11.5

func MultiZlibDecompress(compressedData []byte, times int) ([]byte, error)

MultiZlibDecompress 支持多次解压缩

func ZlibCompress

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

ZlibCompress 压缩数据

func ZlibDecompress

func ZlibDecompress(compressedData []byte) ([]byte, error)

ZlibDecompress 解压缩数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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