From: Matt Joiner Date: Mon, 9 Nov 2015 11:27:38 +0000 (+1100) Subject: Add comment doc for File.PrioritizeRegion X-Git-Tag: v1.0.0~992 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6d7dd06b47999fc008894106a6f73604f26a05f5;p=btrtrc.git Add comment doc for File.PrioritizeRegion --- diff --git a/file.go b/file.go index 52b5bfeb..b8550cc7 100644 --- a/file.go +++ b/file.go @@ -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