Read bytes from the file
(b []byte)
| 290 | |
| 291 | // Read bytes from the file |
| 292 | func (fh *RWFileHandle) Read(b []byte) (n int, err error) { |
| 293 | fh.mu.Lock() |
| 294 | defer fh.mu.Unlock() |
| 295 | n, err = fh._readAt(b, fh.offset, false) |
| 296 | fh.offset += int64(n) |
| 297 | return n, err |
| 298 | } |
| 299 | |
| 300 | // Seek to new file position |
| 301 | func (fh *RWFileHandle) Seek(offset int64, whence int) (ret int64, err error) { |