pinCallback

fnCallbackContext * pinCallback(SimpleCallback callback) nothrow

Creates a pinned callback context from a delegate.

This is a convenience function for one-off callback registration.

Parameters

callbackThe delegate to wrap

Returns

Pointer to the callback context, suitable for passing to C functions