Azure Kinect Sensor SDK
refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK
|
k4a_result_t k4a_set_allocator | ( | k4a_memory_allocate_cb_t | allocate, |
k4a_memory_destroy_cb_t | free | ||
) |
Sets the callback functions for the SDK allocator.
allocate | The callback function to allocate memory. When the SDK requires memory allocation this callback will be called and the application can provide a buffer and a context. |
free | The callback function to free memory. The SDK will call this function when memory allocated by allocate is no longer needed. |
allocate
and free
as NULL will clear the hook and reset to the default allocator.free
function may still be called in the future. The SDK will always call the free
function that was set at the time that the memory was allocated.