Lines Matching defs:lastPiece
572 file->lastPiece = getBytePiece( info, lastByte );
579 return ( file->firstPiece <= piece ) && ( piece <= file->lastPiece );
616 if( file->firstPiece == piece || file->lastPiece == piece )
642 while( inf->files[f].lastPiece < p )
652 assert( inf->files[f].lastPiece >= p );
654 assert( inf->files[f-1].lastPiece < p );
2138 for( i = file->firstPiece; i <= file->lastPiece; ++i )
2188 tr_piece_index_t lastPiece;
2195 lastPiece = file->lastPiece;
2204 if( tor->info.files[i].lastPiece != firstPiece )
2217 if( tor->info.files[i].firstPiece != lastPiece )
2222 if( firstPiece == lastPiece )
2230 tor->info.pieces[lastPiece].dnd = lastPieceDND;
2231 for( pp = firstPiece + 1; pp < lastPiece; ++pp )
3042 for( p=&inf->pieces[f->firstPiece], pend=&inf->pieces[f->lastPiece]; p!=pend; ++p )