/** * Throws a managed exception if LibVLC has returned a native * unmanaged exception. Clears the native exception. */ public void Raise() { if (raised == 0) { return; } string msg = U8String.FromNative(message); try { if (msg != null) { throw new VLCException(code, msg); } else { throw new VLCException(code); } } finally { LibVLC.ExceptionClear(this); } }
/** * Converts an heap-allocated nul-terminated UTF-8 characters array * into a managed string. * @return the resulting managed string. */ public override string ToString() { return(U8String.FromNative(handle)); }