Lines Matching refs:fileIndex
43 tr_file_index_t fileIndex,
52 const tr_file * const file = &info->files[fileIndex];
54 assert( fileIndex < info->fileCount );
65 fd = tr_fdFileGetCached( session, tr_torrentId( tor ), fileIndex, doWrite );
73 if( !tr_torrentFindFile2( tor, fileIndex, &base, &subpath, NULL ) )
82 ? tr_torrentBuildPartial( tor, fileIndex )
94 if((( fd = tr_fdFileCheckout( session, tor->uniqueId, fileIndex,
159 tr_file_index_t * fileIndex,
174 *fileIndex = file - tor->info.files;
177 assert( *fileIndex < tor->info.fileCount );
179 assert( tor->info.files[*fileIndex].offset + *fileOffset == offset );
192 tr_file_index_t fileIndex;
200 &fileIndex, &fileOffset );
204 const tr_file * file = &info->files[fileIndex];
207 err = readOrWriteBytes( tor->session, tor, ioMode, fileIndex, fileOffset, buf, bytesThisPass );
210 ++fileIndex;