public void Execute() { using (var reader = new BinaryReader(File.Open(_fileName, FileMode.Open, FileAccess.Read, FileShare.Read))) { reader.BaseStream.Seek(_startPosition, SeekOrigin.Begin); var bytes = reader.ReadBytes(_bytesCount); _outputHolder.Add(_chunkIndex, bytes); } }
public void Execute() { _outputHolder.Add(_chunkIndex, _compressor.Decompress(_inputHolder.Get(_chunkIndex))); }