/// <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; }
/// <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; }