[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStringStream.Read

Reads from the stream.

Declaration

Source position: classesh.inc line 712

public function TStringStream.Read(

  var Buffer;

  Count: LongInt

):LongInt; override;

Description

Readimplements the abstract Readfrom TStream. It tries to read Countbytes into Buffer. It returns the number of bytes actually read. The position of the stream is advanced with the number of bytes actually read; When the reading has reached the end of the DataString, then the reading stops, i.e. it is not possible to read beyond the end of the datastring.

See also

TStream.Read

  

Reads data from the stream to a buffer and returns the number of bytes read.

TStringStream.Write

  

Writeimplements the abstract TStream.Writemethod.

TStringStream.DataString

  

Contains the contents of the stream in string form