Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 654 Bytes

TPJPipe-CopyFromStream.md

File metadata and controls

23 lines (13 loc) · 654 Bytes

CopyFromStream method

Project: I/O Utility Classes

Unit: PJPipe

Class: TPJPipe

Applies to: ~>1.0

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

Description

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

  • Stm: Stream from which to copy data.

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

An EInOutError exception is raised if the pipe's write handle has been closed or if the pipe can't be written to. EReadError is raised if the stream read fails.