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. Deprecated: Use those fields instead.
16 // The piece state is being marked in the storage.
19 // Some of the piece has been obtained.
22 // The v2 hash for the piece layer is missing.
23 MissingPieceLayerHash bool
26 // Represents a series of consecutive pieces with the same state.
27 type PieceStateRun struct {
29 Length int // How many consecutive pieces have this state.