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); } }
public bool TryGetNext(ref UnsafeHashMapEntryIterator itr) => UnsafeHashMapData.NextEntryIndex(mBuffer, ref itr);
//--------------------------------------------------------------------------------------------------------- #region iterator Access public bool TryGetFirst(out UnsafeHashMapEntryIterator itr) => UnsafeHashMapData.FirstEntryIndex(mBuffer, out itr);