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

            Settings = defaultSettings;
        }
示例#2
0
文件: Util.cs 项目: ollelogdahl/pifs
        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;
        }
示例#3
0
 // Constructors -------------------------------------------------------
 public PiFSEngine(CompressSettings settings)
 {
     Settings = settings;
 }