AddRange
Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
AddRange(void*, int)
Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements.
public void AddRange(void* ptr, int length)
Parameters
Remarks
The same as FixedList512Bytes<T>.AddRangeNoResize. Included only for consistency with the other list types. If the elements exceeds the capacity, throws cref="IndexOutOfRangeException", and the list is unchanged.
AddRange(ReadOnlySpan<T>)
Copies elements from a ReadOnlySpan to the end of this list.
public void AddRange(ReadOnlySpan<T> roSpan)
Parameters
ReadOnlySpan to copy from.