public override void Close() { if (internalStream is Stream) { CloseStream(); //internalStream.Dispose(); internalStream = null; } }
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; }