lz4file

package
v0.0.0-...-212a885 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Overview

* @Author: Wangjun * @Date: 2021-05-15 22:43:19 * @LastEditTime: 2022-09-25 22:22:10 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\lz4file\lz4file.go * hnxr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(b []byte) (data []byte, err error)

*

  • @description: 解码
  • @param {[]byte} b
  • @return {*}

func DecodeFromBase64

func DecodeFromBase64(s string) (data []byte, err error)

DecodeFromBase64 先解码再加压缩

func Encode

func Encode(b []byte) (data []byte, err error)

*

  • @description: lz4 编码
  • @param {[]byte} b
  • @return {*}

func EncodeToBase64

func EncodeToBase64(b []byte, level int) (data string, err error)

EncodeToBase64 压缩后编码到base64

func LoadLz4File

func LoadLz4File(file string) (data []byte, err error)

LoadLz4File 从文件中加载

func SaveLz4File

func SaveLz4File(file string, data []byte) (err error)

SaveLz4File 保存

Types

This section is empty.

Jump to

Keyboard shortcuts

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