Class PartialPieceInfo

java.lang.Object
com.frostwire.jlibtorrent.PartialPieceInfo

public final class PartialPieceInfo extends Object
This class holds information about pieces that have outstanding requests or outstanding writes.
  • Constructor Details

    • PartialPieceInfo

      public PartialPieceInfo(partial_piece_info p)
      Parameters:
      p - the native object
  • Method Details

    • swig

      public partial_piece_info 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