public static DebugServerError debugserver_client_receive_response(DebugServerClientHandle client, out string response) { System.Runtime.InteropServices.ICustomMarshaler responseMarshaler = NativeStringMarshaler.GetInstance(null); System.IntPtr responseNative = System.IntPtr.Zero; DebugServerError returnValue = DebugServerNativeMethods.debugserver_client_receive_response(client, out responseNative); response = ((string)responseMarshaler.MarshalNativeToManaged(responseNative)); responseMarshaler.CleanUpNativeData(responseNative); return(returnValue); }
/// <summary> /// Receives and parses response of debugserver service. /// </summary> /// <param name="client"> /// The debugserver client /// </param> /// <param name="response"> /// Response received for last command (can be NULL to ignore) /// </param> /// <returns> /// DEBUGSERVER_E_SUCCESS on success, /// DEBUGSERVER_E_INVALID_ARG when client is NULL /// </returns> public virtual DebugServerError debugserver_client_receive_response(DebugServerClientHandle client, out string response) { return(DebugServerNativeMethods.debugserver_client_receive_response(client, out response)); }