Unit 'Objects' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TMemoryStream.Read

Read data from the stream to a location in memory.

Declaration

Source position: objects.pp line 423

procedure TMemoryStream.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

TStream.Read

  

Read data from stream to buffer.

TMemoryStream.Write

  

Write data to the stream.


Documentation generated on: Nov 23 2024