public PiFSEngine() { // Use default settings ------------------------------------------- CompressSettings defaultSettings = new CompressSettings( "abcdefghijklmnopqrstuvwxyzåäö .,!?", 50000000, 8 ); Settings = defaultSettings; }
public static void PrintStartup(DateTime now, CompressSettings settings) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"Started: {now}"); string threads = (settings.ThreadCount > 1) ? "[MULTI-THREADING]" : "[SINGLE-THREADING]"; Console.WriteLine($"Threads: {settings.ThreadCount} {threads}"); Console.WriteLine($"Chunk size: {settings.SearchSize} Chars"); Console.WriteLine($"Block size: {settings.BlockBytes} Bytes"); Console.WriteLine(); Console.ForegroundColor = ConsoleColor.White; }
// Constructors ------------------------------------------------------- public PiFSEngine(CompressSettings settings) { Settings = settings; }