Internet Direct (Indy)
Home
PreviousUpNext
WriteTIdBytesToStream Function

Write TIdBytes values to a TStream.

Pascal
procedure WriteTIdBytesToStream(
    const AStream: TIdStream; 
    const ABytes: TIdBytes
);
Parameters 
Description 
AStream 
Stream to receive the contents of the TIdBytes value.
 
ABytes 
Values to be written to the TStream. 

WriteTIdBytesToStream is a procedure used to copy the contents of the TIdBytes specified in ABytes to the TStream identified in AStream. WriteTIdBytesToStream calls the Write method in the stream to write the byte values. 

WriteTIdBytesToStream isolates the differences between platforms and stream implementations for use in the Indy library. WriteTIdBytesToStream is often used to convert character, byte, string, and other values to a representation common to all platforms (TIdBytes). 

Use one of the following common stream routines to read or write the associated ordinal data type using a stream instance: 

 

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.