FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kAlloc kSvNode_MessageAlloc ( kSvNode  node)

Gets a memory allocator that is suitable for quickly allocating numerous, short-lived objects.

The message allocator is intended to allocate the kind of short-lived objects that are frequently generated during acquisition and data processing activities. It should not be used to allocate objects that will exist for a longer duration (e.g., service implementation objects).

The message allocator can typically fulfill small memory requests faster than the normal application allocator (kAlloc_App). The tradeoff is that these allocations may be cached for a longer duration before being returned to the underlying heap.

The allocator object returned by this function is guaranteed to be valid for the lifetime of the kSvNode object. Ownership cannot be extended by increasing the allocator's reference count.

Parameters
nodeNode object.
Returns
Message allocator object.