\rst
.. warning:: This function modifies the global state and should therefore be
used accordingly. Changing the memory handlers while allocated items exist
will result in a `free`/`malloc` mismatch. This function is not thread
safe with respect to both itself and all the other *libcbor* functions that
work with the heap.
.. note:: realloc implementation must correctly support NULL reallocation
(see e.g. http://en.cppreference.com/w/c/memory/realloc) \endrst
Sets the memory management routines to use.
Only available when CBOR_CUSTOM_ALLOC is truthy
\rst .. warning:: This function modifies the global state and should therefore be used accordingly. Changing the memory handlers while allocated items exist will result in a `free`/`malloc` mismatch. This function is not thread safe with respect to both itself and all the other *libcbor* functions that work with the heap. .. note:: realloc implementation must correctly support NULL reallocation (see e.g. http://en.cppreference.com/w/c/memory/realloc) \endrst
@param custom_malloc malloc implementation @param custom_realloc realloc implementation @param custom_free free implementation