[−][src]Type Definition k4a_sys_temp::k4a_memory_allocate_cb_t
type k4a_memory_allocate_cb_t = Option<unsafe extern "C" fn(size: c_int, context: *mut *mut c_void) -> *mut u8>;
Callback function for a memory allocation.
\param size Minimum size in bytes needed for the buffer.
\param context Output parameter for a context that will be provided in the subsequent call to the \ref k4a_memory_destroy_cb_t callback.
\return A pointer to the newly allocated memory.
\remarks A callback of this type is provided when there is an application defined allocator.
\xmlonly