Versions in this module Expand all Collapse all v0 v0.1.6 Jun 19, 2021 Changes in this version + const HeaderLen + const MaxDictCap + const MinDictCap + var ErrLimit = errors.New("limit reached") + var ErrNoSpace = errors.New("insufficient space") + func ByteReader(r io.Reader) io.ByteReader + func DecodeDictCap(c byte) (n int64, err error) + func EncodeDictCap(n int64) byte + func ValidHeader(data []byte) bool + type LimitedByteWriter struct + BW io.ByteWriter + N int64 + func (l *LimitedByteWriter) WriteByte(c byte) error + type MatchAlgorithm byte + const BinaryTree + const HashTable4 + func (a MatchAlgorithm) String() string + type Properties struct + LC int + LP int + PB int + func PropertiesForCode(code byte) (p Properties, err error) + func (p *Properties) String() string + func (p Properties) Code() byte + type Reader struct + func NewReader(lzma io.Reader) (r *Reader, err error) + func (r *Reader) EOSMarker() bool + func (r *Reader) Read(p []byte) (n int, err error) + type Reader2 struct + func NewReader2(lzma2 io.Reader) (r *Reader2, err error) + func (r *Reader2) EOS() bool + func (r *Reader2) Read(p []byte) (n int, err error) + type Reader2Config struct + DictCap int + func (c *Reader2Config) Verify() error + func (c Reader2Config) NewReader2(lzma2 io.Reader) (r *Reader2, err error) + type ReaderConfig struct + DictCap int + func (c *ReaderConfig) Verify() error + func (c ReaderConfig) NewReader(lzma io.Reader) (r *Reader, err error) + type Writer struct + func NewWriter(lzma io.Writer) (w *Writer, err error) + func (w *Writer) Close() error + func (w *Writer) Write(p []byte) (n int, err error) + type Writer2 struct + func NewWriter2(lzma2 io.Writer) (w *Writer2, err error) + func (w *Writer2) Close() error + func (w *Writer2) Flush() error + func (w *Writer2) Write(p []byte) (n int, err error) + type Writer2Config struct + BufSize int + DictCap int + Matcher MatchAlgorithm + Properties *Properties + func (c *Writer2Config) Verify() error + func (c Writer2Config) NewWriter2(lzma2 io.Writer) (w *Writer2, err error) + type WriterConfig struct + BufSize int + DictCap int + EOSMarker bool + Matcher MatchAlgorithm + Properties *Properties + Size int64 + SizeInHeader bool + func (c *WriterConfig) Verify() error + func (c WriterConfig) NewWriter(lzma io.Writer) (w *Writer, err error)