예제 #1
0
        /**
         * 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);
            }
        }
예제 #2
0
파일: ustring.cs 프로젝트: rdp/vlc-1
 /**
  * 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));
 }