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

TStringStream.Read

Reads from the stream.

Declaration

Source position: classesh.inc line 1017

public function TStringStream.Read(

  var Buffer;

  Count: LongInt

):LongInt; override;

Description

Read overrides the Read from TStream. It tries to read Count bytes 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

  

Write overrides the TStream.Write method.

TStringStream.DataString

  

Contains the contents of the stream in string form


Documentation generated on: Mar 17 2017