protected ZipBase(FileInfo sourceFile, FileInfo destinationFile) { _sourceFile = sourceFile; _destinationFile = destinationFile; InputBlocks = new SimpleConcurrentQueue <ByteBlock>(); OutputBlocks = new SimpleConcurrentDictionary <int, byte[]>(); }
/// <summary> /// See parameters description. /// For more information see description to <see cref="BufferIdea.ThreadSafeAccessToBuffer" /> /// </summary> /// <param name="capacity">How much data items buffer can contain. Will freeze calling thread when exceeded</param> /// <param name="orderMatters">Whether we want to pull data by order.</param> public AccessBlockingDataBuffer(int capacity, bool orderMatters) { _orderMatters = orderMatters; _internalBuffer = new SimpleConcurrentDictionary <int, T>(capacity); }