예제 #1
0
        public override void Close()
        {
            if (internalStream is Stream)
            {
                CloseStream();

                //internalStream.Dispose();
                internalStream = null;
            }
        }
예제 #2
0
        public AbstractMultiStream(ulong numStreams)
            : base()
        {
            if (numStreams == 0)
            {
                throw new ArgumentNullException();
            }

            Sizes = new long?[numStreams];
            CRCs  = new uint?[numStreams];

            internalStream  = null;
            this.numStreams = (long)numStreams;
            currentIndex    = -1;
            currentOffset   = 0;
            currentPos      = 0;
            currentSize     = 0;
        }