public static Output[] Create(IEnumerable <Input> inputs) { List <Output> list = new List <Output>(); ulong len = 0; foreach (Input input in inputs) { Output output = new Output(); FileInfo fileInfo = new FileInfo(input.FilePath); ulong ofs = LayoutManager.AlignInput(len, input.AlignmentSize); output.FilePath = input.FilePath; output.Offset = ofs; output.Size = (ulong)fileInfo.Length; list.Add(output); len = ofs + (ulong)fileInfo.Length; } return(list.ToArray()); }