AddRange
Adds all the elements from newElems to the end of the buffer, resizing as necessary.
阅读时间1 分钟最后更新于 19 天前
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.