Topic Path: Symbol Reference > Classes > TIdTCPStream Class > TIdTCPStream Methods > Read Method > Read Method (, Longint)
ContentsIndexHome
PreviousUpNext
TIdTCPStream.Read Method (, Longint)

Reads values from the stream.

function Read(
    var Buffer; 
    Count: Longint
): Longint; override;
Parameters 
Description 
Buffer 
Buffer used to store values read from the stream.
 
Count 
Number of bytes to read from the stream. 

Longint - Number of bytes affected by the operation.

Read is an overridden method used to read data from the stream into the buffer specified in Buffer. 

Read calls the ReadBytes method in the TIdIOHandler for the connection using a TIdBytes data type constructed for the purpose. 

The return value for the method is the number of bytes affected by the read operation. 

 

Please note that this variant of the Read method is not implemented for the .Net platform only.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.