[Overview][Constants][Classes][Procedures and functions][Index] | Reference for unit 'Pipes' (#fcl)

# TInputPipeStream.Write

Write data to the stream.

## Declaration

Source position: pipes.pp line 40

`public function TInputPipeStream.Write(`
`const Buffer;`
`Count: LongInt`
`):LongInt; override;`

## Arguments

`Buffer` |  | Memory buffer containing the data to be written.
`Count` |  | Number of bytes that must be written.

## Function result

Number of bytes actually written.

## Description

Write overrides the parent implementation of Write. On a TInputPipeStream will always raise an exception, as the pipe is read-only.

## Errors

An EStreamError exception is raised when this function is called.

## See also

Read |  | Read data from the stream to a buffer.
Seek |  | Set the current position of the stream

Documentation generated on: May 14 2021