Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 618 Bytes

TPJPipe-CopyToStream.md

File metadata and controls

23 lines (13 loc) · 618 Bytes

CopyToStream method

Project: I/O Utility Classes

Unit: PJPipe

Class: TPJPipe

Applies to: ~>1.0

procedure CopyToStream(const Stm: TStream; Count: LongWord = 0);

Description

This method copies data from the pipe to a stream. Parameters are:

  • Stm: Stream that receives the data.

  • Count: Number of bytes to copy. If 0 then all the remaining data in the pipe is copied to the stream.

An EInOutError exception is raised if there is an error peeking or reading the pipe. EWriteError is raised if the stream write fails.