refactor
This commit is contained in:
parent
d056ac1167
commit
bd75492b02
81 changed files with 822 additions and 1098 deletions
pkg/ctxbilly
|
@ -164,3 +164,12 @@ func (m *wrapFile) Unlock() error {
|
|||
func (m *wrapFile) Write(ctx context.Context, p []byte) (n int, err error) {
|
||||
return m.File.Write(p)
|
||||
}
|
||||
|
||||
// WriteAt implements File.
|
||||
func (m *wrapFile) WriteAt(ctx context.Context, p []byte, off int64) (n int, err error) {
|
||||
_, err = m.File.Seek(off, 0)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return m.File.Write(p)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue