public void ExtractPartition(string outputFilePath, NCSDSection partition) { if (!this.Info.Partitions.Any(part => part.ID == partition)) { throw new ArgumentException($"Specified partition ID {Enum.GetName(typeof(NCSDSection), partition)} {(int)partition} was not found inside this NCSD."); } Extract(this.Info.Partitions.Find(part => part.ID == partition), File.Create(outputFilePath)); }
public NCSDPartition(long offset, long size, int id) { this.Offset = offset; this.Size = size; this.ID = (NCSDSection)id; }