Esempio n. 1
0
 public bool TryRead(ref UnsafeHashMapEntryIterator itr, out TKey key, out TValue value, out TResult result)
 {
     if (itr.entryIndex != -1)
     {
         key = UnsafeHashMapData.KeyAtEntry <TKey>(itr, mBuffer);
         var data = UnsafeHashMapData.ValueAtEntry <TData>(itr, mBuffer);
         value  = data.Value;
         result = data.Result;
         return(true);
     }
     else
     {
         key    = default;
         value  = default;
         result = default;
         return(false);
     }
 }
Esempio n. 2
0
 public bool TryGetNext(ref UnsafeHashMapEntryIterator itr) => UnsafeHashMapData.NextEntryIndex(mBuffer, ref itr);
Esempio n. 3
0
        //---------------------------------------------------------------------------------------------------------
        #region iterator Access

        public bool TryGetFirst(out UnsafeHashMapEntryIterator itr) => UnsafeHashMapData.FirstEntryIndex(mBuffer, out itr);