2
0
mirror of synced 2025-02-24 06:38:14 +00:00

Add comment doc for File.PrioritizeRegion

This commit is contained in:
Matt Joiner 2015-11-09 22:27:38 +11:00
parent bc5d79e1d3
commit 6d7dd06b47

View File

@ -71,6 +71,8 @@ func (f *File) State() (ret []FilePieceState) {
return
}
// Marks pieces in the region of the file for download. This is a helper
// wrapping Torrent.SetRegionPriority.
func (f *File) PrioritizeRegion(off, len int64) {
if off < 0 || off >= f.length {
return