ReadBytes method

Project: I/O Utility Classes

Unit: PJPipe

Class: TPJPipe

Applies to: ~>1.0

function ReadBytes(const Count: LongWord = 0): TBytes;

Description

This method reads data from the pipe into a byte array. The parameter is:

The required byte array is returned.

An EInOutError exception is raised if there is an error peeking or reading the pipe.

Remarks

On versions of Delphi where TBytes is not defined in SysUtils, the PJPipe unit defines it as:

type TBytes = array of Byte;