Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void Set(TangleKey key, ref T value)
        {
            if (_Count >= Capacity)
            {
                throw new IndexOutOfRangeException();
            }

            Buffer[_Count++] = new BatchItem <T>(key, ref value, true);
        }