Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
Arquivo: ustring.cs Projeto: 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));
 }