Struct VersionNativeList<TItem>
Wrapper for NativeList with versioning.
Whenever the list is modified, the version is incremented.
Assembly: fwt.core.dll
Syntax
public struct VersionNativeList<TItem> : IDisposable where TItem : unmanaged
Type Parameters
| Name |
Description |
| TItem |
Type of value in a Array
|
Fields
Values
Declaration
public NativeList<TItem> Values
Field Value
| Type |
Description |
| NativeList<TItem> |
|
Version
Version of the list.
Whenever the list is modified, this value is incremented.
Declaration
Field Value
Properties
IsCreated
Declaration
public bool IsCreated { get; }
Property Value
IsDirty
Declaration
public bool IsDirty { get; }
Property Value
this[int]
Declaration
public TItem this[int index] { get; set; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
Length
Declaration
public int Length { get; }
Property Value
Methods
Clear()
Declaration
Dispose()
Declaration
FillArray(TItem)
Declaration
public void FillArray(TItem value)
Parameters
| Type |
Name |
Description |
| TItem |
value |
|
Init(int, Allocator)
Declaration
public void Init(int capacity, Allocator allocator)
Parameters
| Type |
Name |
Description |
| int |
capacity |
|
| Allocator |
allocator |
|
Init(Allocator)
Declaration
public void Init(Allocator allocator)
Parameters
| Type |
Name |
Description |
| Allocator |
allocator |
|
MarkDirty()
Declaration
ResetDirty()
Declaration
SetItemsCount(int)
Declaration
public void SetItemsCount(int itemsCount)
Parameters
| Type |
Name |
Description |
| int |
itemsCount |
|
Implements
Extension Methods