// Verify checks the configuration for errors. Zero values will be
// replaced by default values.
Verify checks the configuration for errors. Zero values will be
replaced by default values.
// Verify checks the configuration for errors . Zero values will be // replaced by default values .
func (c *WriterConfig) Verify() error {
	if c == nil {
		return errors.New("xz: writer configuration is nil")
	}
	c.fill()
	lc := lzma.Writer2Config{
		Properties: c.Properties,
		DictCap:    c.DictCap,
		BufSize:    c.BufSize,
		Matcher:    c.Matcher,
	}
	if err := lc.Verify(); err != nil {
		return err
	}
	if c.BlockSize <= 0 {
		return errors.New("xz: block size out of range")
	}
	if err := verifyFlags(c.CheckSum); err != nil {
		return err
	}
	return nil
}
func ( c * WriterConfig ) Verify ( ) error { if c == nil { return errors . New ( " " ) } c . fill ( ) lc := lzma . Writer2Config { Properties : c . Properties , DictCap : c . DictCap , BufSize : c . BufSize , Matcher : c . Matcher , } if err := lc . Verify ( ) ; err != nil { return err } if c . BlockSize <= 0 { return errors . New ( " " ) } if err := verifyFlags ( c . CheckSum ) ; err != nil { return err } return nil }
Verify checks the configuration for errors.
Verify checks the configuration for errors .