// Verify checks the Writer2Config for correctness. Zero values will be
// replaced by default values.
Verify checks the Writer2Config for correctness. Zero values will be
replaced by default values.
// Verify checks the Writer2Config for correctness . Zero values will be // replaced by default values .
func (c *Writer2Config) Verify() error {
	c.fill()
	var err error
	if c == nil {
		return errors.New("lzma: WriterConfig is nil")
	}
	if c.Properties == nil {
		return errors.New("lzma: WriterConfig has no Properties set")
	}
	if err = c.Properties.verify(); err != nil {
		return err
	}
	if !(MinDictCap <= c.DictCap && int64(c.DictCap) <= MaxDictCap) {
		return errors.New("lzma: dictionary capacity is out of range")
	}
	if !(maxMatchLen <= c.BufSize) {
		return errors.New("lzma: lookahead buffer size too small")
	}
	if c.Properties.LC+c.Properties.LP > 4 {
		return errors.New("lzma: sum of lc and lp exceeds 4")
	}
	if err = c.Matcher.verify(); err != nil {
		return err
	}
	return nil
}
func ( c * Writer2Config ) Verify ( ) error { c . fill ( ) var err error if c == nil { return errors . New ( " " ) } if c . Properties == nil { return errors . New ( " " ) } if err = c . Properties . verify ( ) ; err != nil { return err } if ! ( MinDictCap <= c . DictCap && int64 ( c . DictCap ) <= MaxDictCap ) { return errors . New ( " " ) } if ! ( maxMatchLen <= c . BufSize ) { return errors . New ( " " ) } if c . Properties . LC + c . Properties . LP > 4 { return errors . New ( " " ) } if err = c . Matcher . verify ( ) ; err != nil { return err } return nil }
Verify checks the Writer2Config for correctness.
Verify checks the Writer2Config for correctness .