INNER CODE UNIT · C++
pairs_to_read
fbreitwieser/krakenuniq · src/db_shrink.cpp:101
pairs_to_read = block_size + 1;
odd_block_count--;
}
input_file.read(buffer, pairs_to_read * pair_size);
remaining_input_pairs -= pairs_to_read;
output_file.write(buffer + pair_size * (pairs_to_read - Offset), pair_size);
current_output_count++;
if (current_output_count % 10000 == 0) {
cerr << "\rWritten " << current_output_count << "/" << Output_count << " k-mers to new file";
}
}
cerr << "\rWrote " << current_output_count << "/" << Output_count << " k-mers to new file \n";
input_file.close();
output_file.close();