return f.prio
}
+// Returns the index of the first piece containing data for the file.
func (f *File) firstPieceIndex() pieceIndex {
if f.t.usualPieceSize() == 0 {
return 0
return pieceIndex(f.offset / int64(f.t.usualPieceSize()))
}
+// Returns the index of the piece after the last one containing data for the file.
func (f *File) endPieceIndex() pieceIndex {
if f.t.usualPieceSize() == 0 {
return 0