public void InjectExistingValue(int indexID, TValue value) { if (IndexFilter.Contains(indexID)) { int packedIndex = IndexFilter.GetPackedIndex(indexID); mTargetOutput.SetValue(value, packedIndex); } }
public FilteredIndexSet(int capacity, IReadonlyIndexSet[] requirements, IReadonlyIndexSet[] exclusions) { mFilter = new IndexFilter(requirements, exclusions); mIndexSet = new IndexSet(capacity); }