Struct VersionNativeArray<TItem>
Wrapper for NativeArray with versioning.
Whenever the array is modified, the version is incremented.
Assembly: fwt.core.dll
Syntax
public struct VersionNativeArray<TItem> : IDisposable where TItem : unmanaged
Type Parameters
| Name |
Description |
| TItem |
Type of value in the array
|
Fields
Values
Declaration
public NativeArray<TItem> Values
Field Value
| Type |
Description |
| NativeArray<TItem> |
|
Version
Version of the array.
Whenever the array 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
Dispose()
Declaration
FillArray(TItem)
Declaration
public void FillArray(TItem value)
Parameters
| Type |
Name |
Description |
| TItem |
value |
|
Init(int, Allocator)
Declaration
public void Init(int itemsCount, Allocator allocator)
Parameters
| Type |
Name |
Description |
| int |
itemsCount |
|
| Allocator |
allocator |
|
MarkDirty()
Declaration
ResetDirty()
Declaration
Implements
Extension Methods