Topic Path: Symbol Reference > Classes > TIdBuffer Class > TIdBuffer Methods > SaveToStream Method
TIdBuffer.SaveToStream Method

Writes the contents of the buffer to a stream.

procedure SaveToStream(
    const AStream: TIdStream
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.

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