lz4Kit

package
v3.0.83 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewWriter func(w io.Writer) *lz4.Writer = lz4.NewWriter

	NewReader func(r io.Reader) *lz4.Reader = lz4.NewReader
)

Functions

func Compress

func Compress(data []byte) (compressedData []byte, err error)

func CompressFile

func CompressFile(src, dest string) error

CompressFile

@param dest (1) 建议文件后缀为 ".lz4"

(2) 如果已经存在 && 是个文件,会覆盖.

func Decompress

func Decompress(compressedData []byte) (decompressData []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