# Memory operations

Memory operations are common for whole CDS library. Because it must work together with SER's memory management and must work without it too, there are wrapper macros for memory allocation/deallocation.

These macros were functions and it may change in the future, but macros are probably better - they allow better debugging than functions. There are defined another macros (see cds_malloc_ptr, cds_free_ptr), which point and will point to allocation/deallocation functions, thus they may be used as function pointers.

It is possible to redefine these macros/functions to help with memory debugging or for monitoring purposes or so.