Exemple #1
0
Fichier : VHD.cs Projet : AyrA/vhd
 /// <summary>
 /// Gets the minimum possible disk size for the given disk
 /// </summary>
 /// <param name="MBRData">MBR data Size: <see cref="MBR.MasterBootRecord.MBR_SIZE"/></param>
 /// <returns>Minimum disk size in bytes</returns>
 public static ulong GetMinDiskSize(byte[] MBRData)
 {
     var M = new MBR.MasterBootRecord(MBRData);
     M.Validate();
     return GetMinDiskSize(M);
 }
Exemple #2
0
Fichier : VHD.cs Projet : AyrA/vhd
 /// <summary>
 /// Gets the minimum possible disk size for the given disk
 /// </summary>
 /// <param name="VhdStream">Stream placed at the start of the MBR</param>
 /// <returns>Minimum disk size in bytes</returns>
 public static ulong GetMinDiskSize(Stream VhdStream)
 {
     var M = new MBR.MasterBootRecord(VhdStream);
     M.Validate();
     return GetMinDiskSize(M);
 }