文档

Unity Engine


User Manual

Script Reference

Unity Engine


AddRangeNoResize

Copies elements from a buffer to the end of the list.
阅读时间1 分钟最后更新于 1 个月前

Definition

AddRangeNoResize(void*, int)

Copies elements from a buffer to the end of the list.
public void AddRangeNoResize(void* ptr, int count)

Parameters

The buffer to copy from.

count

The number of elements to copy from the buffer.

Remarks

Increments the length by
count
. Never increases the capacity.

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.

AddRangeNoResize(UnsafeList<T>)

Copies the elements of another list to the end of this list.
public void AddRangeNoResize(UnsafeList<T> list)

Parameters

The other list to copy from.

Remarks

Increments the length by the length of the other list. Never increases the capacity.