private unsafe short ReadPortForWritePort(IntPtr *readPort, IntPtr writePort) { #if DEBUG DebugUtils.Ping(DebugFlags.ChannelPorts, string.Format("readPort: {0}, writePort: {1}", DebugUtils.PointerToHexString(readPort), writePort.ToString())); #endif if (readPort == null) { return(PSError.paramErr); } return(PSError.memFullErr); }