This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.
Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.
Project: I/O Utility Classes
Applies to: ~>1.0
This class provides a wrapper round a Windows un-named pipe.
Pipes can be created with the desired security attributes. Pipes can also have inheritable handles to make them suitable for passing to child processes †.
TPJPipe provides methods to check the number of bytes in a readable pipe, read bytes from a pipe into either a buffer or a stream and write bytes to a pipe from buffers and streams.
† Inheritable handles have a particular use in the Console Application Runner Classes for piping the output or input of console applications to and from the host application.
|Peeks the pipe to get the size of data available for reading.
|Closes the pipe’s write handle if it is open.
|Copies data from a stream into the pipe.
|Copies data from the pipe to a stream.
|Various overloaded constructors.
|Reads data from the pipe into a byte array.
|Reads data from the pipe into a buffer.
|Writes the content of a byte array to the pipe.
|Writes data from a buffer to the pipe.
|Windows handle used to read data from the pipe.
|Windows handle used to write data to the pipe.
TPJPipe exposes no events.