Added sparse file support

This commit is contained in:
Eduard Urbach 2025-05-23 19:35:52 +02:00
parent 9d6356e8a9
commit 60691d09ed
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
10 changed files with 32 additions and 37 deletions

7
src/test/Discard.go Normal file
View file

@ -0,0 +1,7 @@
package test
// Discard implements a no-op WriteSeeker.
type Discard struct{}
func (w *Discard) Write(_ []byte) (int, error) { return 0, nil }
func (w *Discard) Seek(_ int64, _ int) (int64, error) { return 0, nil }