AddRange
Adds all the elements from newElems to the end of the buffer, resizing as necessary.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
AddRange(NativeArray<T>)
Adds all the elements from to the end of the buffer, resizing as necessary.
newElemspublic void AddRange(NativeArray<T> newElems)
Parameters
The native array of elements to insert.
Remarks
The buffer is resized if it has no additional capacity.
AddRange(ReadOnlySpan<T>)
Adds all the elements from to the end of the buffer, resizing as necessary.
newElemspublic void AddRange(ReadOnlySpan<T> newElems)
Parameters
The ReadOnlySpan of elements to insert.
Remarks
The buffer is resized if it has no additional capacity.