func (w *Writer) Write(p []byte) (int, error) {
	writeCallsBuffered.Inc()
	n, err := w.bw.Write(p)
	writtenBytesBuffered.Add(n)
	if err != nil {
		return n, err
	}
	if err := w.st.adviseDontNeed(n, true); err != nil {
		return n, fmt.Errorf("advise error for %q: %s", w.f.Name(), err)
	}
	return n, nil
}
// Write writes p to the underlying file.
Write writes p to the underlying file.
// Write writes p to the underlying file .
func (w *Writer) Write(p []byte) (int, error) {
	writeCallsBuffered.Inc()
	n, err := w.bw.Write(p)
	writtenBytesBuffered.Add(n)
	if err != nil {
		return n, err
	}
	if err := w.st.adviseDontNeed(n, true); err != nil {
		return n, fmt.Errorf("advise error for %q: %s", w.f.Name(), err)
	}
	return n, nil
}
func ( w * Writer ) Write ( p [ ] byte ) ( int , error ) { writeCallsBuffered . Inc ( ) n , err := w . bw . Write ( p ) writtenBytesBuffered . Add ( n ) if err != nil { return n , err } if err := w . st . adviseDontNeed ( n , true ) ; err != nil { return n , fmt . Errorf ( " " , w . f . Name ( ) , err ) } return n , nil }
Write writes p to the underlying file.
Write writes p to the underlying file .