static UnsafeHashSet *Set(params int[] values) { var c = UnsafeHashSet.Allocate <int>(values.Length * 2); for (int i = 0; i < values.Length; ++i) { UnsafeHashSet.Add(c, values[i]); } return(c); }
public void FreeDynamicSet() { var s = UnsafeHashSet.Allocate <int>(2, false); UnsafeHashSet.Free(s); }
public void FreeFixedSet() { var s = UnsafeHashSet.Allocate <int>(2, true); UnsafeHashSet.Free(s); }