Struct VersionNativeHashMap<TKey, TItem>
Wrapper for NativeHashMap with versioning.
Whenever the map is modified, the version is incremented.
Assembly: fwt.core.dll
Syntax
public struct VersionNativeHashMap<TKey, TItem> : IDisposable where TKey : unmanaged, IEquatable<TKey> where TItem : unmanaged
Type Parameters
| Name |
Description |
| TKey |
TYpe of key in the HashMap
|
| TItem |
Type of value in the HashMap
|
Fields
Values
Declaration
public NativeHashMap<TKey, TItem> Values
Field Value
| Type |
Description |
| NativeHashMap<TKey, TItem> |
|
Version
Version of the map. Incremented whenever the map is modified.
Declaration
Field Value
Properties
Capacity
Declaration
public int Capacity { get; set; }
Property Value
IsCreated
Declaration
public bool IsCreated { get; }
Property Value
IsDirty
Declaration
public bool IsDirty { get; }
Property Value
this[TKey]
Declaration
public TItem this[TKey key] { get; set; }
Parameters
| Type |
Name |
Description |
| TKey |
key |
|
Property Value
Length
Declaration
public int Length { get; }
Property Value
Methods
Clear()
Declaration
Dispose()
Declaration
Init(int, Allocator)
Declaration
public void Init(int capacity, Allocator allocator)
Parameters
| Type |
Name |
Description |
| int |
capacity |
|
| Allocator |
allocator |
|
MarkDirty()
Declaration
ResetDirty()
Declaration
Implements
Extension Methods