Documentation ¶
Index ¶
Constants ¶
View Source
const ( BestSpeed = 3 BestCompression = 9 DefaultCompression = -1 Version = 0x1030 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Header ¶
Lzop file stores a header giving metadata about the compressed file. That header is exposed as the fields of the Writer and Reader structs.
type Reader ¶
type Reader struct { Header // contains filtered or unexported fields }
A Reader is an io.Reader that can be read to retrieve uncompressed data from a lzop-format compressed file.
type Writer ¶
type Writer struct { Header // contains filtered or unexported fields }
A Writer is an io.Write that satisfies writes by compressing data written to its wrapped io.Writer.
func NewWriter ¶
NewWriter creates a new Writer that satisfies writes by compressing data written to w.
func NewWriterLevel ¶
NewWriterLevel is like NewWriter but specifies the compression level instead of assuming DefaultCompression.
Click to show internal directories.
Click to hide internal directories.