AddRange
Adds all the elements from newElems to the end of the buffer, resizing as necessary.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.