예제 #1
0
 public void Initialize()
 {
     if (this.values == null)
     {
         this.values = PoolDictionaryCopyable <long, float> .Spawn(10);
     }
     if (this.indexes == null)
     {
         this.indexes = PoolHashSetCopyable <int> .Spawn();
     }
 }
예제 #2
0
 public DataDictionary(int capacity) : this(PoolDictionaryCopyable <TKey, TValue> .Spawn(capacity))
 {
 }
예제 #3
0
        public void Clone(DictionaryCopyable <TKey, TValue> from, ref DictionaryCopyable <TKey, TValue> to)
        {
            to = PoolDictionaryCopyable <TKey, TValue> .Spawn(from.Count);

            ArrayUtils.Copy(from, ref to);
        }