Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPStream.Write Method (array of Byte, Longint, Longint)

Writes byte values from a buffer to the socket-based stream.

Pascal
function Write(
    const ABuffer: array of Byte; 
    AOffset: Longint; 
    ACount: Longint
): Longint; override; overload;
Parameters 
Description 
ABuffer 
Buffer with data to write to the stream.
 
AOffset 
Initial offset into the buffer used when writing values to the socket-based stream.
 
ACount 
Number of bytes starting at the indicated offset to write to the stream. 

Longint - Number of bytes affected by the operation.

Write is an overloaded overridden method used to write byte values from ABuffer to the socket-based stream. 

AOffset indicates the initial offset into the array of bytes in ABuffer used when writing values to the socket-based stream. Please note that AOffset is not used in this variant of the Write method. 

ACount indicates the number of bytes starting at the indicated offset to write to the stream. 

The return value for the method is the number of bytes derived by subtracting AOffset from the requested byte count in ACount. 

 

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

TIdTCPStream.Write

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.