// Close closes the writer.

Close closes the writer.
// Close closes the writer .
func (bw *blockWriter) Close() error {
	if bw.closed {
		return errClosed
	}
	bw.closed = true
	if err := bw.w.Close(); err != nil {
		return err
	}
	s := bw.hash.Size()
	k := padLen(bw.cxz.n)
	p := make([]byte, k+s)
	bw.hash.Sum(p[k:k])
	if _, err := bw.cxz.w.Write(p); err != nil {
		return err
	}
	return nil
}
func ( bw * blockWriter ) Close ( ) error { if bw . closed { return errClosed } bw . closed = true if err := bw . w . Close ( ) ; err != nil { return err } s := bw . hash . Size ( ) k := padLen ( bw . cxz . n ) p := make ( [ ] byte , k + s ) bw . hash . Sum ( p [ k : k ] ) if _ , err := bw . cxz . w . Write ( p ) ; err != nil { return err } return nil }
Close closes the writer.
Close closes the writer .