diff options
Diffstat (limited to 'lib/diskio/ref.go')
-rw-r--r-- | lib/diskio/ref.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/diskio/ref.go b/lib/diskio/ref.go index 9782743..137701d 100644 --- a/lib/diskio/ref.go +++ b/lib/diskio/ref.go @@ -6,23 +6,10 @@ package diskio import ( "fmt" - "io" "git.lukeshu.com/btrfs-progs-ng/lib/binstruct" ) -type File[A ~int64] interface { - Name() string - Size() (A, error) - ReadAt(p []byte, off A) (n int, err error) - WriteAt(p []byte, off A) (n int, err error) -} - -var ( - _ io.WriterAt = File[int64](nil) - _ io.ReaderAt = File[int64](nil) -) - type Ref[A ~int64, T any] struct { File File[A] Addr A |