/// <exception cref="System.IO.IOException"/> private void CompareRun(string compress) { string[] supported = TFile.GetSupportedCompressionAlgorithms(); bool proceed = false; foreach (string c in supported) { if (c.Equals(compress)) { proceed = true; break; } } if (!proceed) { System.Console.Out.WriteLine("Skipped for " + compress); return; } options.compress = compress; string parameters = Parameters2String(options); CreateSeqFile(parameters, compress); ReadSeqFile(parameters, true); CreateTFile(parameters, compress); ReadTFile(parameters, true); CreateTFile(parameters, compress); ReadTFile(parameters, true); CreateSeqFile(parameters, compress); ReadSeqFile(parameters, true); }
/// <exception cref="System.IO.IOException"/> public virtual void TestSeeks() { string[] supported = TFile.GetSupportedCompressionAlgorithms(); bool proceed = false; foreach (string c in supported) { if (c.Equals(options.compress)) { proceed = true; break; } } if (!proceed) { System.Console.Out.WriteLine("Skipped for " + options.compress); return; } if (options.DoCreate()) { CreateTFile(); } if (options.DoRead()) { SeekTFile(); } }