Struct DynamicArray<T>
Syntax
public struct DynamicArray<T> : IDisposable where T : struct
Type Parameters
Constructors
DynamicArray(Allocator)
Declaration
public DynamicArray(Allocator label)
Parameters
| Type |
Name |
Description |
| Allocator |
label |
|
DynamicArray(Int64, Allocator, Boolean)
Declaration
public DynamicArray(long initialSize, Allocator label, bool memClear = false)
Parameters
| Type |
Name |
Description |
| Int64 |
initialSize |
|
| Allocator |
label |
|
| Boolean |
memClear |
|
Properties
Capacity
Declaration
public long Capacity { get; set; }
Property Value
Count
Declaration
public long Count { readonly get; }
Property Value
IsCreated
Declaration
public bool IsCreated { readonly get; }
Property Value
Item[Int64]
Declaration
public T this[long idx] { get; set; }
Parameters
| Type |
Name |
Description |
| Int64 |
idx |
|
Property Value
Methods
Back()
Declaration
Returns
Clear(Boolean)
Declaration
public void Clear(bool stomp)
Parameters
| Type |
Name |
Description |
| Boolean |
stomp |
|
CopyFrom(T[])
Declaration
public void CopyFrom(T[] arr)
Parameters
| Type |
Name |
Description |
| T[] |
arr |
|
Dispose()
Declaration
GetUnsafePtr()
Declaration
public void *GetUnsafePtr()
Returns
Pop()
Declaration
Returns
Push(T)
Declaration
public void Push(T value)
Parameters
| Type |
Name |
Description |
| T |
value |
|
Reinterpret<U>()
Declaration
public DynamicArray<U> Reinterpret<U>()
where U : struct
Returns
Type Parameters
Reinterpret<U>(Int32)
Declaration
public DynamicArray<U> Reinterpret<U>(int expectedTypeSize)
where U : struct
Parameters
| Type |
Name |
Description |
| Int32 |
expectedTypeSize |
|
Returns
Type Parameters
Resize(Int64, Boolean)
Declaration
public void Resize(long newSize, bool memClear)
Parameters
ShrinkToFit()
Declaration
public void ShrinkToFit()