Class PeerRequest
java.lang.Object
com.frostwire.jlibtorrent.PeerRequest
Represents a byte range within a piece. Internally this is
is used for incoming piece requests.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PeerRequest
-
-
Method Details
-
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
-