[][src]Type Definition k4a_sys_temp::k4a_memory_destroy_cb_t

type k4a_memory_destroy_cb_t = Option<unsafe extern "C" fn(buffer: *mut c_void, context: *mut c_void)>;

Callback function for a memory object being destroyed.

\param buffer The buffer pointer that was supplied by the caller as \p buffer_release_cb to \ref k4a_image_create_from_buffer().

\param context The context for the memory object that needs to be destroyed that was supplied by the caller as \p buffer_release_cb_context to \ref k4a_image_create_from_buffer().

\remarks When all references for the memory object are released, this callback will be invoked as the final destroy for the given memory.

\xmlonly k4atypes.h (include k4a/k4a.h) \endxmlonly