Example #1
0
        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));
        }
Example #2
0
 public NCSDPartition(long offset, long size, int id)
 {
     this.Offset = offset;
     this.Size   = size;
     this.ID     = (NCSDSection)id;
 }