ドキュメント

Unity Engine

Unity Engine

Pop

Removes and returns the last element of this append buffer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

Pop<T>()

Removes and returns the last element of this append buffer.
public T Pop<T>() where T : unmanaged

Returns

Type

Description

TThe element removed from the end of this append buffer.

Remarks

It is your responsibility to specify the correct type. Do not pop when the append buffer is empty.

Pop(void*, int)

Removes and copies the last element of this append buffer.
public void Pop(void* ptr, int structSize)

Parameters

The location to which the removed element will be copied.

structSize

The size of the element to remove and copy.

Remarks

It is your responsibility to specify the correct
structSize
. Do not pop when the append buffer is empty.