Documentation ¶
Overview ¶
Package go-liblzma is a wrapper for liblzma and XZ file format.
Index ¶
Constants ¶
View Source
const DefaultBufsize = 32768
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct {
// contains filtered or unexported fields
}
func NewWriterCustom ¶
Initializes a XZ encoder with additional settings.
func (*Compressor) Close ¶
func (enc *Compressor) Close() error
Frees any resources allocated by liblzma. It does not close the underlying reader.
func (*Compressor) Flush ¶
func (enc *Compressor) Flush() error
type Decompressor ¶
type Decompressor struct {
// contains filtered or unexported fields
}
func (*Decompressor) Close ¶
func (r *Decompressor) Close() error
Frees any resources allocated by liblzma. It does not close the underlying reader.
type Errno ¶
type Errno uint
const ( // Operation completed successfully. Ok Errno = iota // End of stream was reached. StreamEnd // Input stream has no integrity check. NoCheck // Cannot calculate the integrity check. UnsupportedCheck // Integrity check type is now available. GetCheck // Cannot allocate memory. MemError // Memory usage limit was reached. MemlimitError // File format not recognized. FormatError // Invalid or unsupported options. OptionsError // Data is corrupt. DataError // No progress is possible. BufError // Programming error. ProgError )
Click to show internal directories.
Click to hide internal directories.