lzop

package
v0.0.0-...-93de0db Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressData

func CompressData(fileTime int64, fileName string, data []byte, compressionFunction func([]byte) []byte) ([]byte, error)

CompressData Will Compress your data expecting an LZO 1X1 compression. Creates buffer for you

func CompressDataWithBuffer

func CompressDataWithBuffer(buff *bytes.Buffer, fileTime int64, fileName string, data []byte, compressionFunction func([]byte) []byte) ([]byte, error)

CompressDataWithBuffer Allows you to specify the buffer to use for compression allowing re-use

func WriteBytes

func WriteBytes(buff *bytes.Buffer, data []byte, compressionFunction func([]byte) []byte) error

WriteBytes Writes your bytes to a buffer via compression function

func WriteEnd

func WriteEnd(buff *bytes.Buffer) error

WriteEnd writes the ending bytes of an lzop file

func WriteHeader

func WriteHeader(buff *bytes.Buffer, fileTime int64, fileName string) error

WriteHeader Writes only the header start of an lzop file

Types

This section is empty.

Jump to

Keyboard shortcuts

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