Class PartialPieceInfo
java.lang.Object
com.frostwire.jlibtorrent.PartialPieceInfo
This class holds information about pieces that have outstanding
requests or outstanding writes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe number of blocks in this piece.intfinished()The number of blocks that are in the finished state.intThe index of the piece in question.intThe number of blocks that are in the requested state.swig()intwriting()The number of blocks that are in the writing state.
-
Constructor Details
-
PartialPieceInfo
- Parameters:
p- the native object
-
-
Method Details
-
swig
- Returns:
- the native object
-
pieceIndex
public int pieceIndex()The index of the piece in question.blocksInPiece()is the number of blocks in this particular piece. This number will be the same for most pieces, but the last piece may have fewer blocks than the standard pieces.- Returns:
- the piece index
-
blocksInPiece
public int blocksInPiece()The number of blocks in this piece.- Returns:
- the number of blocks
-
finished
public int finished()The number of blocks that are in the finished state.- Returns:
- the number of finished blocks
-
writing
public int writing()The number of blocks that are in the writing state.- Returns:
- the number of blocks in writing state
-
requested
public int requested()The number of blocks that are in the requested state.- Returns:
- the number of blocks in requested state
-