Beispiel #1
0
		public static string Get(StringAttributeUtf8 getter)
		{
			using (nsAUTF8String str = new nsAUTF8String())
			{
				getter(str);
				return str.ToString();
			}
		}
Beispiel #2
0
		public static void Set(StringAttributeUtf8 setter, string value)
		{
			using (nsAUTF8String str = new nsAUTF8String())
			{
				if (!string.IsNullOrEmpty(value))
					str.SetData(value);
				
				setter(str);
			}
		}
 static extern int NS_CStringSetData(nsAUTF8String str, byte [] data, int length);
 static extern int NS_CStringGetData(nsAUTF8String str, out IntPtr data, IntPtr nullTerm);
 static extern int NS_CStringContainerInit(nsAUTF8String container);
 static extern int NS_CStringContainerFinish(nsAUTF8String container);
 public bool OnError(nsAUTF8String message, nsAUTF8String fileName, uint line, uint pos, uint flags, uint errnum, jsdIValue exc)
 {
     var eventArgs = new JavascriptErrorEventArgs(message.ToString(), fileName.ToString(), line, pos, flags, errnum);
     m_browser.OnJavascriptError(eventArgs);
     return true;
 }
Beispiel #8
0
 public void Resolve(string relativePath, string resolved)
 {
     var retval = new nsAUTF8String();
     Instance.Resolve(new nsAUTF8String(relativePath), retval);
     resolved = retval.ToString();
 }