Apply 32-byte buffer.

master
Icedream 2013-04-30 03:15:43 +02:00
parent e2d201416c
commit e0962cceb2
1 changed files with 4 additions and 4 deletions

View File

@ -21,9 +21,9 @@ namespace npipe
{ {
NamedPipeServerStream pipe = new NamedPipeServerStream(args.Last(), PipeDirection.Out, 1); NamedPipeServerStream pipe = new NamedPipeServerStream(args.Last(), PipeDirection.Out, 1);
pipe.WaitForConnection(); pipe.WaitForConnection();
using (var stdin = Console.OpenStandardInput()) using (var stdin = Console.OpenStandardInput(32))
{ {
stdin.CopyTo(pipe); stdin.CopyTo(pipe, 32);
} }
} }
catch (Exception) catch (Exception)
@ -38,9 +38,9 @@ namespace npipe
{ {
NamedPipeClientStream pipe = new NamedPipeClientStream(".", args.Last(), PipeDirection.In); NamedPipeClientStream pipe = new NamedPipeClientStream(".", args.Last(), PipeDirection.In);
pipe.Connect(); pipe.Connect();
using (var stdout = Console.OpenStandardOutput()) using (var stdout = Console.OpenStandardOutput(32))
{ {
pipe.CopyTo(stdout); pipe.CopyTo(stdout, 32);
} }
} }
catch (Exception) catch (Exception)