/// <summary> /// Frees the entry at the specified <paramref name="index"/>. /// </summary> /// <param name="index">Index of entry to free</param> public void Free(int index) { lock (_allocated) { _allocated.Clear(index); } }
/// <summary> /// Frees the entry at the specified <paramref name="index"/>. /// </summary> /// <param name="index">Index of entry to free</param> /// <exception cref="ObjectDisposedException"><see cref="EntryTable{TEntry}"/> instance was disposed</exception> public void Free(int index) { if (_disposed) { throw new ObjectDisposedException(null); } lock (_allocated) { if (_allocated.IsSet(index)) { _allocated.Clear(index); _freeHint = index; } } }