AllocateTypes Data Member Function

Allocates <Node> objects of the specified types and transfers ownership of the <Node> objects to the <NodeBuffer>.

Prototype

int32 AllocateTypes( NodeBuffer p_oBuffer, TypeInfoArray p_aoTypes, int32 p_nCount )

Parameters

Parameter Type Parameter Name Documentation
<NodeBuffer>p_oBufferA pointer to the <NodeBuffer> that owns the new <Node> objects.
<TypeInfoArray>p_aoTypesA <TypeInfoArray> representing the types of <Node> objects to allocate.
int32p_nCountThe number of sets of <Node> objects to allocate. If you pass three types in and set the count to 3, you end up with 9 new <Node> objects, allocated in blocks of <Node> objects that are the same sequence as the <TypeInfoArray>.

Examples

Copy Text To Clipboard

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