public sealed override void Dispose() { this.m_cacheLookup = null; this.m_cachePriority = null; this.m_serializationQueue = null; this.m_pinnedItems = null; base.Dispose(); }
public void CacheSetValue(ReferenceID id, BaseReference value) { if (this.m_cacheLookup == null) { this.m_cacheLookup = new SegmentedDictionary <ReferenceID, BaseReference>(503, 17, ReferenceIDEqualityComparer.Instance); } this.m_cacheLookup[id] = value; }
public void PrepareForFlush() { this.m_cachePriority.Clear(); this.m_cacheLookup = null; this.m_cacheFreeableBytes = 0L; base.m_pendingFreeBytes = 0L; this.m_lockedDownForFlush = true; }
public SegmentedDictionaryEnumerator(SegmentedDictionary <TKey, TValue> dictionary) { this.m_dictionary = dictionary; this.m_version = dictionary.m_version; this.m_currentValueIndex = -1; this.m_currentPair = default(KeyValuePair <TKey, TValue>); this.m_context = null; this.Reset(); }
public void Flush() { foreach (BaseReference item in this.m_serializationQueue) { this.WriteItem(item); } this.m_serializationQueue.Clear(); this.m_cachePriority.Clear(); this.m_cacheLookup = null; base.m_cacheCapacityBytes = 0L; this.m_cacheFreeableBytes = 0L; base.m_cacheSizeBytes = 0L; base.m_storage.Flush(); }
public override void Dispose() { try { if (this.m_offsetMap != null) { this.m_offsetMap.Close(); this.m_offsetMap = null; } this.m_cacheLookup = null; this.m_cachePriority = null; this.m_staticIdLookup = null; this.m_staticReferences = null; } finally { base.Dispose(); } }
public SegmentedDictionaryValuesCollection(SegmentedDictionary <TKey, TValue> dictionary) { this.m_dictionary = dictionary; }
public SegmentedDictionaryValuesEnumerator(SegmentedDictionary <TKey, TValue> dictionary) { this.m_dictionary = dictionary; this.m_enumerator = dictionary.GetEnumerator(); }
public void Dispose() { this.m_context = null; this.m_dictionary = null; }