Skip to content

Commit 9a92a4d

Browse files
author
LoneWandererProductions
committed
Add some smaller stuff
1 parent 8e9864c commit 9a92a4d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

ExtendedSystemObjects/IntArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public IntArray(int size)
5959
/// <summary>
6060
/// Gets the current allocated capacity.
6161
/// </summary>
62-
private int Capacity { get; set; }
62+
public int Capacity { get; set; }
6363

6464
/// <inheritdoc />
6565
/// <summary>

ExtendedSystemObjects/SortedKvStore.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ public SortedKvStore(int initialCapacity = 16)
5858
/// </summary>
5959
public int Count { get; private set; }
6060

61+
/// <summary>
62+
/// Gets the free capacity.
63+
/// </summary>
64+
/// <value>
65+
/// The free capacity.
66+
/// </value>
67+
public int FreeCapacity => _keys.Capacity - Count;
68+
6169
/// <summary>
6270
/// Gets an enumerable collection of all keys currently in the store.
6371
/// </summary>

0 commit comments

Comments
 (0)