Ejemplo n.º 1
0
        /// <summary>
        /// Create a pipe
        /// </summary>
        /// <param name="size">The size of the pipe buffer</param>
        /// <param name="writer">The writer endpoint of the pipe</param>
        /// <param name="reader">The reader endpoint of the pipe</param>
        public static void CreatePipe(int size, out Stream writer, out Stream reader)
        {
            PipeStreamBuffer buffer = new PipeStreamBuffer(size);

            writer = new PipeStreamWriter(buffer);
            reader = new PipeStreamReader(buffer);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a pipe
 /// </summary>
 /// <param name="size">The size of the pipe buffer</param>
 /// <param name="writer">The writer endpoint of the pipe</param>
 /// <param name="reader">The reader endpoint of the pipe</param>
 public static void CreatePipe(int size, out Stream writer, out Stream reader) {
     PipeStreamBuffer buffer = new PipeStreamBuffer(size);
     writer = new PipeStreamWriter(buffer);
     reader = new PipeStreamReader(buffer);
 }