PieceStats

data class PieceStats(val peerCount: Int, val priority: Int, val have: Boolean, val downloading: Boolean)

A snapshot of one piece's high-level state, the port of piece_picker::piece_stats_t. Returned by PiecePicker.pieceStats.

Constructors

Link copied to clipboard
constructor(peerCount: Int, priority: Int, have: Boolean, downloading: Boolean)

Properties

Link copied to clipboard

True if the piece is currently being downloaded.

Link copied to clipboard

True if we have the piece (passed hash check).

Link copied to clipboard

Availability: number of connected peers (incl. seeds) that have the piece.

Link copied to clipboard

The effective priority/sort value (piece_pos::priority); -1 = not pickable.