Package com.frostwire.jlibtorrent
Class FileSlice
java.lang.Object
com.frostwire.jlibtorrent.FileSlice
Represents a window of a file in a torrent.
The refers to the index of the file (in the TorrentInfo).
To get the path and filename, use TorrentInfo.files(). The is the byte offset in the
file where the range starts, and is the number of bytes this range is. The size + offset
will never be greater than the file size.
Implementation note: This class does not store internally a reference to the native swig
file_slice. This is because we are dealing with only three integral
values and we want to avoid keeping a reference to a memory in the native heap.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileSlice
public FileSlice(com.frostwire.jlibtorrent.swig.file_slice fs) - Parameters:
fs- the native object
-
-
Method Details