Struct BidirectionalNativeDictionary<T1, T2>
public struct BidirectionalNativeDictionary<T1, T2> : IDisposable where T1 : struct, IEquatable<T1> where T2 : struct, IEquatable<T2>
Type Parameters
T1
T2
- Implements
- Inherited Members
- Extension Methods
Constructors
BidirectionalNativeDictionary(int, Allocator)
public BidirectionalNativeDictionary(int capacity, Allocator allocator)
Parameters
Properties
Count
public int Count { get; }
Property Value
Methods
Add(T1, T2)
public void Add(T1 key, T2 value)
Parameters
key
T1value
T2
Contains(T1)
public bool Contains(T1 key)
Parameters
key
T1
Returns
Contains(T2)
public bool Contains(T2 key)
Parameters
key
T2
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Get(T2)
public T1 Get(T2 key)
Parameters
key
T2
Returns
- T1
GetFromKey(T1)
public T2 GetFromKey(T1 key)
Parameters
key
T1
Returns
- T2
GetKeyFromValue(T2)
public T1 GetKeyFromValue(T2 value)
Parameters
value
T2
Returns
- T1
GetNativeHashMapT1toT2()
public NativeParallelHashMap<T1, T2> GetNativeHashMapT1toT2()
Returns
- NativeParallelHashMap<T1, T2>
RemoveFromKey(T1)
public void RemoveFromKey(T1 key)
Parameters
key
T1
RemoveFromValue(T2)
public T1 RemoveFromValue(T2 key)
Parameters
key
T2
Returns
- T1
TryGetValue(T1, out T2)
public bool TryGetValue(T1 key, out T2 value)
Parameters
key
T1value
T2
Returns
TryGetValue(T2, out T1)
public bool TryGetValue(T2 key, out T1 value)
Parameters
key
T2value
T1