Write bytes to the file
(b []byte)
| 374 | |
| 375 | // Write bytes to the file |
| 376 | func (fh *RWFileHandle) Write(b []byte) (n int, err error) { |
| 377 | fh.mu.Lock() |
| 378 | defer fh.mu.Unlock() |
| 379 | n, err = fh._writeAt(b, fh.offset, false) |
| 380 | fh.offset += int64(n) |
| 381 | return n, err |
| 382 | } |
| 383 | |
| 384 | // WriteString a string to the file |
| 385 | func (fh *RWFileHandle) WriteString(s string) (n int, err error) { |
no test coverage detected