Macros | |
#define | BUFFER_SIZE 1024 |
Functions | |
void | process_input_single_thread (const char *input_file, const char *output_file, const char *generations, bool decrypt) |
Processes the input file using a single thread. | |
void | process_input_multi_thread (const char *input_file, const char *output_file, const char *generations, bool decrypt, int threads) |
Processes the input file using multiple threads. | |
#define BUFFER_SIZE 1024 |
void process_input_multi_thread | ( | const char * | input_file, |
const char * | output_file, | ||
const char * | generations, | ||
bool | decrypt, | ||
int | threads | ||
) |
Processes the input file using multiple threads.
This function divides the input file into chunks, assigns each chunk to a separate thread for processing, and writes the results to the output file.
input_file | The path to the input file. |
output_file | The path to the output file. |
generations | The generation sequence string. |
decrypt | A flag indicating whether to decrypt (true ) or encrypt (false ). |
threads | The number of threads to use for processing. |
void process_input_single_thread | ( | const char * | input_file, |
const char * | output_file, | ||
const char * | generations, | ||
bool | decrypt | ||
) |
Processes the input file using a single thread.
This function reads the input file in chunks, applies the mutations to each chunk, and writes the result to the output file.
input_file | The path to the input file. |
output_file | The path to the output file. |
generations | The generation sequence string. |
decrypt | A flag indicating whether to decrypt (true ) or encrypt (false ). |