기술 자료

Unity Engine

Unity Engine

AddRangeNoResize

Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements.
읽는 시간 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

A buffer.

length

The number of elements from the buffer to append.

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.