Add
Appends an element to the end of this append buffer.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
Add<T>(T)
Appends an element to the end of this append buffer.
public void Add<T>(T value) where T : unmanaged
Parameters
Add(void*, int)
Appends an element to the end of this append buffer.
public void Add(void* ptr, int structSize)
Parameters
Remarks
The value itself is stored, not the pointer.
Add<T>(NativeArray<T>)
Appends all elements of an array to the end of this append buffer.
public void Add<T>(NativeArray<T> value) where T : unmanaged
Parameters
The array whose elements will all be appended.