.. _group__a3d__malloc__functions:

########################
Custom Memory Allocation
########################

Specifies custom memory-allocation functions. 

This section describes the function and types that enable you to specify custom memory-allocation functions that the library uses in place of the standard ``malloc`` and ``free`` functions. 

**Returns**


   ``A3D_SUCCESS`` on success, or an error code on failure


.. rst-class:: kind-group kind-type-definition

.. rubric:: Type Definitions
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:type:`~A3DCallbackMemoryAlloc`
* :c:type:`~A3DCallbackMemoryFree`

.. rst-class:: kind-group kind-function

.. rubric:: Functions
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:func:`~A3DDllSetCallbacksMemory`

.. toctree::
   :maxdepth: 1
   :hidden:

   ../types/A3DCallbackMemoryAlloc
   ../types/A3DCallbackMemoryFree
   ../functions/A3DDllSetCallbacksMemory


