Sign in Join
FPDoc Onlineexperiment

THandleStream.Read function

Member of THandleStreampublicIn unit Classes

Overrides standard read method.

Declaration

pascal
function Read(var Buffer; Count: LongInt): LongInt; override

Description

Read overrides the Read method of TStream. It uses the Handle property to read the Count bytes into Buffer

If no error occurs while reading, the number of bytes actually read will be returned.

Errors

If the operating system reports an error while reading from the handle, -1 is returned.

See also

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