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

            Settings = defaultSettings;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 // Constructors -------------------------------------------------------
 public PiFSEngine(CompressSettings settings)
 {
     Settings = settings;
 }