Compact Data Member Function

A <TypeBuffer> can contain a mix of owning pointers, non-owning pointers, and null pointers. Removes any collection indices that refer to null pointers. At least one allocation is required, and the size of this allocation is of the order of the count of the source <TypeBuffer>.

Prototype

int32 Compact()

Examples

Copy Text To Clipboard

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