AddRangeNoResize
Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
AddRangeNoResize(void*, int)
Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements.
public void AddRangeNoResize(void* ptr, int length)
Parameters
Remarks
If the elements exceeds the capacity, throws cref="IndexOutOfRangeException", and the list is unchanged.
AddRangeNoResize(ReadOnlySpan<T>)
Copies elements from a ReadOnlySpan to the end of this list.
public void AddRangeNoResize(ReadOnlySpan<T> roSpan)
Parameters
ReadOnlySpan to copy from.