Struct UnsafeParallelHashMap<TKey, TValue>
- Namespace
- Misaki.HighPerformance.LowLevel.Collections
- Assembly
- Misaki.HighPerformance.LowLevel.dll
public struct UnsafeParallelHashMap<TKey, TValue> : IDisposable where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged
Type Parameters
TKeyTValue
- Implements
- Inherited Members
Constructors
UnsafeParallelHashMap(int, uint, AllocationHandle, AllocationOption)
public UnsafeParallelHashMap(int capacity, uint minGrowth, AllocationHandle handle, AllocationOption allocationOption)
Parameters
capacityintminGrowthuinthandleAllocationHandleallocationOptionAllocationOption
Fields
MINIMAL_CAPACITY
public const int MINIMAL_CAPACITY = 64
Field Value
Properties
Capacity
public readonly int Capacity { get; }
Property Value
Count
public readonly int Count { get; }
Property Value
IsCreated
public readonly bool IsCreated { get; }
Property Value
IsEmpty
public readonly bool IsEmpty { get; }
Property Value
Methods
Add(scoped in TKey, scoped in TValue)
public int Add(scoped in TKey key, scoped in TValue value)
Parameters
keyTKeyvalueTValue
Returns
AsParallelWriter()
public UnsafeParallelHashMap<TKey, TValue>.ParallelWriter AsParallelWriter()
Returns
- UnsafeParallelHashMap<TKey, TValue>.ParallelWriter
Clear()
public void Clear()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Find(scoped in TKey)
public int Find(scoped in TKey key)
Parameters
keyTKey
Returns
Remove(scoped in TKey)
public bool Remove(scoped in TKey key)
Parameters
keyTKey
Returns
Resize(int)
public void Resize(int newCapacity)
Parameters
newCapacityint
TryGetValue(scoped in TKey, out TValue)
public bool TryGetValue(scoped in TKey key, out TValue item)
Parameters
keyTKeyitemTValue