5 // Represents data storage for a Torrent.
7 // Should return io.EOF only at end of torrent. Short reads due to missing
8 // data should return io.ErrUnexpectedEOF.
11 // Bro, do you even io.Closer?
13 // Called when the client believes the piece data will pass a hash check.
14 // The storage can move or mark the piece data as read-only as it sees
16 PieceCompleted(index int) error
17 // Returns true if the piece is complete.
18 PieceComplete(index int) bool