Пример #1
0
 /// <summary>
 /// Send a DateTime to the specified anonymous out pipe.
 /// </summary>
 /// <param name="pipeWriter">The pipe to write to.</param>
 /// <param name="date">The DateTime to send.</param>
 public static void SendDateToPipe(Stream pipeWriter, DateTime date)
 {
     PipeUtilities.SendIntToPipe(pipeWriter, DateToInt(date));
 }
Пример #2
0
 /// <summary>
 /// Send a string to the specified anonymous out pipe, prefixed with the string length as a 4-byte int in little-endian order.
 /// </summary>
 /// <param name="pipeWriter">The pipe to write to.</param>
 /// <param name="s">The string to send.</param>
 public static void SendStringToPipe(Stream pipeWriter, string s)
 {
     PipeUtilities.SendBytesToPipe(pipeWriter, EncodeString(s).ToArray());
 }