From e0962cceb215b5210b01739955fa594d353e89de Mon Sep 17 00:00:00 2001 From: icedream Date: Tue, 30 Apr 2013 03:15:43 +0200 Subject: [PATCH] Apply 32-byte buffer. --- npipe/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/npipe/Program.cs b/npipe/Program.cs index 3c6fd99..756e9bf 100644 --- a/npipe/Program.cs +++ b/npipe/Program.cs @@ -21,9 +21,9 @@ namespace npipe { NamedPipeServerStream pipe = new NamedPipeServerStream(args.Last(), PipeDirection.Out, 1); pipe.WaitForConnection(); - using (var stdin = Console.OpenStandardInput()) + using (var stdin = Console.OpenStandardInput(32)) { - stdin.CopyTo(pipe); + stdin.CopyTo(pipe, 32); } } catch (Exception) @@ -38,9 +38,9 @@ namespace npipe { NamedPipeClientStream pipe = new NamedPipeClientStream(".", args.Last(), PipeDirection.In); pipe.Connect(); - using (var stdout = Console.OpenStandardOutput()) + using (var stdout = Console.OpenStandardOutput(32)) { - pipe.CopyTo(stdout); + pipe.CopyTo(stdout, 32); } } catch (Exception)