public static void StartNewProgram(IntPtr hubHandle, string host) { var bytes = Encoding.UTF8.GetBytes(host); unsafe { fixed(byte *ptr = &bytes[0]) { QniProgramSimpleLib.qni_start_program(hubHandle, ptr, (UIntPtr)bytes.Length); } } }
public static void Init() { QniProgramSimpleLib.qni_init_program(); }