private void registNativeLog() { var logDel = new Action <string>(DecoderNative.nativeLogHandler); var intptr_delegate = Marshal.GetFunctionPointerForDelegate(logDel); DecoderNative.nativeRegistLogHandler(intptr_delegate); }
private void OnDestroy() { //print(LOG_TAG + " OnDestroy"); stopDecoding(); DecoderNative.nativeRegistLogHandler(IntPtr.Zero); }