4 "github.com/anacrolix/torrent/storage"
7 // The current state of a piece.
8 type PieceState struct {
11 // The piece is being hashed, or is queued for hash.
13 // Some of the piece has been obtained.
17 // Represents a series of consecutive pieces with the same state.
18 type PieceStateRun struct {
20 Length int // How many consecutive pieces have this state.