WriteAt bytes to the file at off
(b []byte, off int64)
| 363 | |
| 364 | // WriteAt bytes to the file at off |
| 365 | func (fh *RWFileHandle) WriteAt(b []byte, off int64) (n int, err error) { |
| 366 | fh.mu.Lock() |
| 367 | n, err = fh._writeAt(b, off, true) |
| 368 | if fh.flags&os.O_APPEND != 0 { |
| 369 | fh.offset += int64(n) |
| 370 | } |
| 371 | fh.mu.Unlock() |
| 372 | return n, err |
| 373 | } |
| 374 | |
| 375 | // Write bytes to the file |
| 376 | func (fh *RWFileHandle) Write(b []byte) (n int, err error) { |