RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IStreamPersist.SaveToStream Method

Saves the implementing class instance to a persistent stream.

Pascal
procedure SaveToStream(Stream: TStream);
C++
__fastcall SaveToStream(TStream Stream);

Use SaveToStream to serialise an object, and save this data in a stream independent of the running application. This serialised version of the object literally persists and is available for loading back using LoadFromStream at any time. It is then de-serialised, and reconstituted as an object. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!