Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/vendor/github.com/anacrolix/torrent/piecestate.go

19 lignes
453 o
Go
Brut Vue normale Historique

package torrent
// The current state of a piece.
type PieceState struct {
Priority piecePriority
// The piece is available in its entirety.
Complete bool
// The piece is being hashed, or is queued for hash.
Checking bool
// Some of the piece has been obtained.
Partial bool
}
// Represents a series of consecutive pieces with the same state.
type PieceStateRun struct {
PieceState
Length int // How many consecutive pieces have this state.
}