Class PeerRequest

java.lang.Object
com.frostwire.jlibtorrent.PeerRequest

public final class PeerRequest extends Object
Represents a byte range within a piece. Internally this is is used for incoming piece requests.
  • Constructor Details

  • Method Details

    • swig

      public peer_request swig()
      Returns:
      native object
    • piece

      public int piece()
      The index of the piece in which the range starts.
      Returns:
      the piece index
    • start

      public int start()
      The offset within that piece where the range starts.
      Returns:
      the start offset
    • length

      public int length()
      The size of the range, in bytes.
      Returns:
      the range length
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string representation