// Close terminates the LZMA2 stream with an EOS chunk.
Close terminates the LZMA2 stream with an EOS chunk.
// Close terminates the LZMA2 stream with an EOS chunk .
func (w *Writer2) Close() error {
	if w.cstate == stop {
		return errClosed
	}
	if err := w.Flush(); err != nil {
		return nil
	}
	_, err := w.w.Write([]byte{0})
	if err != nil {
		return err
	}
	w.cstate = stop
	return nil
}
func ( w * Writer2 ) Close ( ) error { if w . cstate == stop { return errClosed } if err := w . Flush ( ) ; err != nil { return nil } _ , err := w . w . Write ( [ ] byte { 0 } ) if err != nil { return err } w . cstate = stop return nil }
Close terminates the LZMA2 stream with an EOS chunk.
Close terminates the LZMA2 stream with an EOS chunk .
// write zero byte EOS chunk