Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 657 Bytes

TPJPipe-WriteBytes.md

File metadata and controls

29 lines (17 loc) · 657 Bytes

WriteBytes method

Project: I/O Utility Classes

Unit: PJPipe

Class: TPJPipe

Applies to: ~>1.0

procedure WriteBytes(const Bytes: TBytes);

Description

This method writes the whole content of a byte array to the pipe. The parameter is:

  • Bytes: Array of bytes to write to the pipe.

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

Remarks

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

type TBytes = array of Byte;