Documentation ¶
Index ¶
- func CompressData(fileTime int64, fileName string, data []byte, ...) ([]byte, error)
- func CompressDataWithBuffer(buff *bytes.Buffer, fileTime int64, fileName string, data []byte, ...) ([]byte, error)
- func WriteBytes(buff *bytes.Buffer, data []byte, compressionFunction func([]byte) []byte) error
- func WriteEnd(buff *bytes.Buffer) error
- func WriteHeader(buff *bytes.Buffer, fileTime int64, fileName string) error
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 ¶
WriteBytes Writes your bytes to a buffer via compression function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.