AcquireObj Data Member Function

Transfers ownership of an object from the source <TypeBuffer> to this <TypeBuffer>. The owning pointer in the source <TypeBuffer> is replaced with a nullptr, and the overall memory layout of the source <TypeBuffer> does not change. (No deallocation occurs inside the source <TypeBuffer> when the owning pointer is transferred.)

Prototype

int32 AcquireObj( TypeBuffer src, Type p_oNode )

Parameters

Parameter Type Parameter Name Documentation
<TypeBuffer>srcA pointer to the <TypeBuffer>.
<Type>p_oNodeA pointer to the object you wish to transfer to the destination <TypeBuffer>.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.