hu_MallocFunc

Prototype of user-provided callback function for memory allocation.

Synopsis:

#include "huctx.h"
 
typedef void* hu_MallocFunc(size_t size, void *cbData);

Since:

BlackBerry 10.0.0

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

If size bytes of memory is not available, this function should return NULL.

The cbData argument is initialized during global context creation and will be passed to this function.