Internet Direct (Indy)
Home
PreviousUpNext
TIdBuffer.SaveToStream Method

Writes the contents of the buffer to a stream.

Pascal
procedure SaveToStream(
    const AStream: TIdStream
);
Parameters 
Description 
AStream 
Stores the contents of the buffer. 

SaveToStream is a procedure used to write the byte values from the internal storage for the buffer to the stream specified in AStream. 

SaveToStream calls the CompactHead method to move the bytes in the internal storage to beginning of the memory allocated for the buffer. It does not resize the amount of storage allocated. 

SaveToStream uses the Write method in TIdStreamHelper to output the number of bytes indicated in Size using the stream instance in AStream.

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.