Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

UnsafeAppendBuffer.Pop

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public T Pop();

Returns

T The element removed from the end of this append buffer.

Description

Removes and returns the last element of this append buffer.

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


Declaration

public void Pop(void* ptr, int structSize);

Parameters

Parameter Description
ptr The location to which the removed element will be copied.
structSize The size of the element to remove and copy.

Description

Removes and copies the last element of this append buffer.

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