示例#1
0
 /// <summary>
 /// Calculates the total size of all of the partitions - amount of clusters that have been used amongst all partitions
 /// </summary>
 /// <returns>Remaining storage in bytes</returns>
 public long RemainingSpace()
 {
     // Size up to the first user-partition (non-cache, non-gay)
     long size = 0;
     for (int i = 0; i < Partitions.Length; i++)
     {
         size += new PartitionFunctions(this, Partitions[i]).GetFreeSpace();
     }
     return size;
 }
示例#2
0
 /// <summary>
 /// Calculates the total size of all of the partitions - amount of clusters that have been used amongst all partitions
 /// </summary>
 /// <returns>Remaining storage in bytes</returns>
 public ulong RemainingSpace()
 {
     // Size up to the first user-partition (non-cache, non-gay)
     if (Remaining == ~0UL)
     {
         Remaining = 0;
         for (int i = 0; i < Partitions.Length; i++)
         {
             Remaining += new PartitionFunctions(this, Partitions[i]).GetFreeSpace();
         }
     }
     return Remaining;
 }