private static string GetErrorMessage(IntPtr /*(ONNXStatus*)*/ status) { IntPtr nativeString = NativeMethods.ONNXRuntimeGetErrorMessage(status); string str = Marshal.PtrToStringAnsi(nativeString); //assumes charset = ANSI return(str); }
private static string GetErrorMessage(IntPtr /*(ONNXStatus*)*/ status) { IntPtr nativeString = NativeMethods.ONNXRuntimeGetErrorMessage(status); string str = Marshal.PtrToStringAnsi(nativeString); //assumes charset = ANSI return(str); }