private static void Write(Stream stream, IpcMessage message) { Write(stream, message.Serialize()); }
private static IpcMessage Read(Stream stream) { return(IpcMessage.Parse(stream)); }
public static Stream SendMessage(Stream stream, IpcMessage message, out IpcMessage response) { Write(stream, message); response = Read(stream); return(stream); }