Sign in Join
FPDoc Onlineexperiment

CreatePipeStreams procedure

In unit Pipes

Create a pair of pipe stream.

Declaration

pascal
procedure CreatePipeStreams(var InPipe: TInputPipeStream; 
 var OutPipe: TOutputPipeStream; 
 APipeBufferSize: Cardinal=1024)

Arguments

InPipe

Contains the read end of the pipe on return.

OutPipe

Contains the write end of the pipe on return.

APipeBufferSize

Description

CreatePipeStreams creates a set of pipe file descriptors with CreatePipeHandles, and if that call is successful, a pair of streams is created: InPipe and OutPipe.

On some systems (notably: windows) the size of the buffer to be used for communication between 2 ends of the buffer can be specified in the APipeBufferSize parameter. This parameter is ignored on systems that do not support setting the buffer size.

Errors

If no pipe handles could be created, an EPipeCreation exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.