Skip to main content

NameDescription
ec_freeFree memory allocated
ec_mallocAllocate a new instance of a defined object type
ec_malloc_sizeAllocate a block of memory of arbitrary size
ec_mem_get_statsReturn usage statistics for all memtypes
ec_memory_get_total_allocatedReturn the total memory allocated via ec_malloc and related functions
ec_memory_is_lowCalled when the core detects a memory shortage
ec_memory_pretty_mem_amountA utility to render an amount with commas
ec_memory_print_allocator_detailsRender low-level allocator information to a string buffer
ec_memtype_by_nameReturns the memtype id for a given memtype name
ec_memtype_get_statsReturn usage statistics for a given memtype
ec_memtype_range_by_moduleReturns the range of memtypes associated with a given module
ec_memtype_registerRegister a new memtype with the system
ec_mt_allocMakes an allocation against a given memtype
ec_mt_asprintfMemory-typed asprintf function
ec_mt_freeReclaim allocated memory
ec_mt_reallocReallocate memory against a given memtype
ec_mt_registerImplementation specific memtype initialization routine
ec_mt_strdupDuplicate a string of the specified memory type
ec_mt_strndupDuplicate a string of the specified message type copying at most the specified number of bytes
ec_mt_vasprintfMemory-typed vasprintf function
ec_reallocRe-allocate a block of memory, changing its size

For an overview of the Momentum memory API see Memory API. Memory usage information is available from the ec_console memory command.

Note

For SMPP-related memory functions see SMPP Functions .

Was this page helpful?