public int SendRawCommand(string command, int reserved) { unsafe { char *ptr = command.ToCharPointer(); int result = (!_isWin) ? LinuxInterop.tdSendRawCommand(ptr, reserved) : WinInterop.tdSendRawCommand(ptr, reserved); Marshal.FreeHGlobal((IntPtr)ptr); return(result); } }