TMemoryStream.Read

Read data from the stream to a location in memory.

Declaration

Source position: objects.pp line 409

default 
  procedure Read(var Buf; Count: LongInt);  Virtual;

Description

Read reads Count bytes from the stream to Buf. It updates the position of the stream.

For an example, see TStream.Read .

Errors

If there is not enough data available, no data is read, and the stream's status is set to stReadError.

See also

Name Description
TMemoryStream.Write Write data to the stream.
TStream.Read Read data from stream to buffer.