pieceRangeForFile

fun pieceRangeForFile(fileIndex: Int): IntRange

The piece range covering file fileIndex, inclusive at both ends. The range runs from the piece holding the file's first byte to the piece holding its last byte. This is analogous to file_storage::file_piece_range. A zero-length file returns IntRange.EMPTY.