ReadData method

Project: I/O Utility Classes

Unit: PJPipe

Class: TPJPipe

Applies to: ~>1.0

function ReadData(out Buf; const BufSize: LongWord; out BytesRead: LongWord):
  Boolean;

Description

This method reads data from the pipe into a buffer. Parameters are:

True is returned if some data was read, False if nothing was read.

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