lotus/extern/storage-sealing/lib/nullreader/nullreader.go

12 lines
219 B
Go
Raw Normal View History

package nullreader
// TODO: extract this to someplace where it can be shared with lotus
type Reader struct{}
func (Reader) Read(out []byte) (int, error) {
for i := range out {
out[i] = 0
}
return len(out), nil
}