protected byte[] GetFile(BuiltTask task, InputFile inputFile) { task.Message = $"Reading {inputFile}"; using (var stream = inputFile.Open()) { var reader = new BinaryReader(stream); return(reader.ReadBytes((int)stream.Length)); } }
protected Stream OpenRead(BuiltTask task, InputFile inputFile) { task.Message = $"Opening {inputFile.Name}"; return(inputFile.Open()); }