Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 683 Bytes

File metadata and controls

25 lines (14 loc) · 683 Bytes

WriteData method

Project: I/O Utility Classes

Unit: PJPipe

Class: TPJPipe

Applies to: ~>1.0

function WriteData(const Buf; const BufSize: LongWord): LongWord;

Description

This method writes data from a buffer to the pipe. Parameters are:

  • Buf: Buffer containing the data to be written. Buf must have capacity of at least BufSize bytes.

  • BufSize: Number of bytes to write from the buffer to the pipe.

The number of bytes actually written is returned by the method.

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