文档

Unity Engine

Unity Engine

AddRange

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

Definition

AddRange(void*, int)

Copies the elements of a buffer to the end of this list.
public void AddRange(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
. Increases the capacity if necessary.

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.

AddRange(UnsafeList<T>)

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

Parameters

container

The container to copy from.

Remarks

The length is increased by the length of the other container. Increases the capacity if necessary.