public void AddOrUpdate(TangleKey key, ref T value, DecisionUpdateCallback <T> updateCallback) { if (_Count >= Capacity) { throw new IndexOutOfRangeException(); } Buffer[_Count++] = new BatchItem <T>(key, ref value, updateCallback); }
public void Set(TangleKey key, ref T value) { if (_Count >= Capacity) { throw new IndexOutOfRangeException(); } Buffer[_Count++] = new BatchItem <T>(key, ref value, true); }