public static bool TryGetValuePtr <K, V>(UnsafeHashMap *map, K key, out V *val) where K : unmanaged, IEquatable <K> where V : unmanaged { var entry = UnsafeHashCollection.Find <K>(&map->_collection, key, key.GetHashCode()); if (entry != null) { val = (V *)GetValue(map, entry); return(true); } val = null; return(false); }
public HRESULT Lookup([NativeTypeName("K_abi")] K key, [NativeTypeName("V_abi *")] V *value) { return(((delegate * unmanaged <IMap <K, V> *, K, V *, int>)(lpVtbl[6]))((IMap <K, V> *)Unsafe.AsPointer(ref this), key, value)); }
public HRESULT get_Value([NativeTypeName("V_abi *")] V *value) { return(((delegate * unmanaged <IKeyValuePair <K, V> *, V *, int>)(lpVtbl[7]))((IKeyValuePair <K, V> *)Unsafe.AsPointer(ref this), value)); }