示例#1
0
        private void RunPipeline()
        {
            if (!PreRead.Any())
            {
                return;
            }

            while (PreRead.Count > 0)
            {
                var action = PreRead.Pop();
                action.Run(Context);
                _executedPreActions.Push(action);
            }
        }
示例#2
0
        protected override void Read(long size)
        {
            Console.WriteLine("here");
            var compType = GetCompressionType();

            Console.WriteLine(compType);

            if (compType != CompressionType.Uncompressed)
            {
                PreRead.Push(new DecompressFile(compType));
            }

            base.Read(size);
        }