compressor

package
v0.0.0-...-3bd58ec Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressS2Bytes

func CompressS2Bytes(rawBytes []byte) (compressedBytes []byte, err error)

func CompressS2Str

func CompressS2Str(rawStr string) (out []byte, err error)

func CreateTgzArchive

func CreateTgzArchive(sourceDir, outputFile string) error

func DecompressS2Bytes

func DecompressS2Bytes(compressedBytes []byte) (rawBytes []byte, err error)

func DecompressS2Str

func DecompressS2Str(compressed []byte) (string, error)

func ExtractTgzArchive

func ExtractTgzArchive(archivePath, destDir string) error

func TryCompressS2Bytes

func TryCompressS2Bytes(rawBytes []byte) (compressedBytes []byte)

func TryCompressS2Str

func TryCompressS2Str(rawStr string) (compressedBytes []byte)

TryCompressS2Str try to compress the string with S2, but if it fails, return []byte(in)

func TryDecompressS2Bytes

func TryDecompressS2Bytes(compressedBytes []byte) (rawBytes []byte)

func TryDecompressS2Str

func TryDecompressS2Str(in []byte) (out string)

TryDecompressS2Str try to decompress the []byte with S2, but if it fails, return string(in)

Types

This section is empty.

Jump to

Keyboard shortcuts

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