blob: d95912a12dd797ef5940ef6f767af1de7d76cde7 [file] [log] [blame]
// +build OMIT
package main
var blackHole [4096]byte // shared buffer
func (devNull) ReadFrom(r io.Reader) (n int64, err error) {
readSize := 0
for {
readSize, err = r.Read(blackHole[:])
n += int64(readSize)
if err != nil {
if err == io.EOF {
return n, nil
}
return
}
}
}