Table of Contents

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

TKey
TValue
Implements
Inherited Members

Constructors

UnsafeParallelHashMap(int, uint, AllocationHandle, AllocationOption)

public UnsafeParallelHashMap(int capacity, uint minGrowth, AllocationHandle handle, AllocationOption allocationOption)

Parameters

capacity int
minGrowth uint
handle AllocationHandle
allocationOption AllocationOption

Fields

MINIMAL_CAPACITY

public const int MINIMAL_CAPACITY = 64

Field Value

int

Properties

Capacity

public readonly int Capacity { get; }

Property Value

int

Count

public readonly int Count { get; }

Property Value

int

IsCreated

public readonly bool IsCreated { get; }

Property Value

bool

IsEmpty

public readonly bool IsEmpty { get; }

Property Value

bool

Methods

Add(scoped in TKey, scoped in TValue)

public int Add(scoped in TKey key, scoped in TValue value)

Parameters

key TKey
value TValue

Returns

int

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

key TKey

Returns

int

Remove(scoped in TKey)

public bool Remove(scoped in TKey key)

Parameters

key TKey

Returns

bool

Resize(int)

public void Resize(int newCapacity)

Parameters

newCapacity int

TryGetValue(scoped in TKey, out TValue)

public bool TryGetValue(scoped in TKey key, out TValue item)

Parameters

key TKey
item TValue

Returns

bool