Class UnmanagedNativeBookkeeper<T>
public class UnmanagedNativeBookkeeper<T> : IDisposable, INativeBookkeeper where T : unmanaged
Type Parameters
T
- Inheritance
-
UnmanagedNativeBookkeeper<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
UnmanagedNativeBookkeeper(int)
public UnmanagedNativeBookkeeper(int defaultCapacity)
Parameters
defaultCapacity
int
Fields
Keys
public NativeList<T> Keys
Field Value
- NativeList<T>
m_bookKeepingRecords
protected List<BookkeepingRecord> m_bookKeepingRecords
Field Value
m_bookkeepingIndexer
protected BidirectionalDictionary<T, int> m_bookkeepingIndexer
Field Value
recordsCount
protected int recordsCount
Field Value
Properties
Count
public int Count { get; }
Property Value
Methods
Add(T)
public virtual int Add(T newEntry)
Parameters
newEntry
T
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetFromIndex(int)
public T GetFromIndex(int i)
Parameters
i
int
Returns
- T
GetIndex(T)
public int GetIndex(T entry)
Parameters
entry
T
Returns
GetKeyFromIndex(int)
public T GetKeyFromIndex(int index)
Parameters
index
int
Returns
- T
HasKey(T)
public bool HasKey(T key)
Parameters
key
T
Returns
RegisterRecord(BookkeepingRecord)
public void RegisterRecord(BookkeepingRecord record)
Parameters
record
BookkeepingRecord
Remove(T)
public virtual BookkeperRemovalInfo Remove(T entry)
Parameters
entry
T