Skip to content

TInputPipeStream.NumBytesAvailable

Number of bytes available for reading.

Declaration

Source position: pipes.pp line 49

public property NumBytesAvailable: DWord;

Description

NumBytesAvailable is the number of bytes available for reading. This is the number of bytes in the OS buffer for the pipe. It is not a number of bytes in an internal buffer.

If this number is nonzero, then reading NumBytesAvailable bytes from the stream will not block the process. Reading more than NumBytesAvailable bytes will block the process, while it waits for the requested number of bytes to become available.

See also

Name Description
TInputPipeStream.Read Read data from the stream to a buffer.