Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPStream.Read Method (, Longint)

Reads values from the stream.

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.