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
Unit: PJPipe
Class: TPJPipe
Applies to: ~>1.0
function ReadBytes(const Count: LongWord = 0): TBytes;
This method reads data from the pipe into a byte array. The parameter is:
0
or greater than the number of available bytes then all the data from the pipe is read.The required byte array is returned.
An EInOutError exception is raised if there is an error peeking or reading the pipe.
On versions of Delphi where TBytes is not defined in SysUtils, the PJPipe unit defines it as:
type TBytes = array of Byte;