public static DataSectionPositionInformation ScheduleWriteSectionOperation(this OperationsManager Manager, ILinuxImageSection Section, uint TemporaryAddress) { var position = new DataSectionPositionInformation(); Manager.Schedule(new DnwSendOperation(Section.Data, TemporaryAddress, Section.DisplayName)); switch (Section.Format) { case SectionFormat.Solid: Manager.Schedule(new NandSafeWriteOperation(TemporaryAddress, Section.Address, Section.PartitionSize, Section.Data.Length, Section.DisplayName, position)); break; case SectionFormat.Yaffs2: Manager.Schedule(new YaffsWriteOperation(TemporaryAddress, Section.Address, Section.DisplayName, Section.Data.Length, Section.PartitionSize)); position.PostInformation(Section.Address, Section.Data.Length); break; } return position; }
public LinuxImage(int BlockSize, ILinuxImageSection KernlSection, params ILinuxImageSection[] OtherSections) { this.BlockSize = BlockSize; this.KernlSection = KernlSection; this.OtherSections = OtherSections; }