Table of Contents

Struct BidirectionalNativeDictionary<T1, T2>

Namespace
Zorro.Core
Assembly
Zorro.Core.Runtime.dll
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

capacity int
allocator Allocator

Properties

Count

public int Count { get; }

Property Value

int

Methods

Add(T1, T2)

public void Add(T1 key, T2 value)

Parameters

key T1
value T2

Contains(T1)

public bool Contains(T1 key)

Parameters

key T1

Returns

bool

Contains(T2)

public bool Contains(T2 key)

Parameters

key T2

Returns

bool

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 T1
value T2

Returns

bool

TryGetValue(T2, out T1)

public bool TryGetValue(T2 key, out T1 value)

Parameters

key T2
value T1

Returns

bool