// Write writes uncompressed data to the block writer.

Write writes uncompressed data to the block writer.
// Write writes uncompressed data to the block writer .
func (bw *blockWriter) Write(p []byte) (n int, err error) {
	if bw.closed {
		return 0, errClosed
	}
	t := bw.blockSize - bw.n
	if int64(len(p)) > t {
		err = errNoSpace
		p = p[:t]
	}
	var werr error
	n, werr = bw.mw.Write(p)
	bw.n += int64(n)
	if werr != nil {
		return n, werr
	}
	return n, err
}
func ( bw * blockWriter ) Write ( p [ ] byte ) ( n int , err error ) { if bw . closed { return 0 , errClosed } t := bw . blockSize - bw . n if int64 ( len ( p ) ) > t { err = errNoSpace p = p [ : t ] } var werr error n , werr = bw . mw . Write ( p ) bw . n += int64 ( n ) if werr != nil { return n , werr } return n , err }
Write writes uncompressed data to the block writer.
Write writes uncompressed data to the block writer .