(p []byte)
| 900 | } |
| 901 | |
| 902 | func (f *fakeFile) Write(p []byte) (int, error) { |
| 903 | f.mut.Lock() |
| 904 | offs := f.offset |
| 905 | f.mut.Unlock() |
| 906 | return f.WriteAt(p, offs) |
| 907 | } |
| 908 | |
| 909 | func (f *fakeFile) WriteAt(p []byte, off int64) (int, error) { |
| 910 | f.mut.Lock() |