Esempio n. 1
0
        public void Compress_EndlessStream()
        {
            var endless    = new EndlessStream((long)(Settings.BufferSize * 1E2));
            var voidStream = new VoidStream();

            compressor.Compress(endless, voidStream);
        }
Esempio n. 2
0
//        [TestMethod]
        public void Compress_EndlessStreamToFile()
        {
            var destFile = @"C:\Users\admin\source\repos\GZipTest\TestCmd\test.blob.gz2";

            File.Delete(destFile);

            var endlessStream = new EndlessStream((long)1E12);

            using (var writeStream = new FileStream(destFile, FileMode.CreateNew, FileAccess.Write))
            {
                compressor.Compress(endlessStream, writeStream);
            }
        }