Exemple #1
0
        public PiFSEngine()
        {
            // Use default settings -------------------------------------------
            CompressSettings defaultSettings = new CompressSettings(
                "abcdefghijklmnopqrstuvwxyzåäö .,!?",
                50000000,
                8
                );

            Settings = defaultSettings;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 // Constructors -------------------------------------------------------
 public PiFSEngine(CompressSettings settings)
 {
     Settings = settings;
 }