System.Classes.IStreamPersist.SaveToStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SaveToStream(Stream: TStream);

C++

virtual void __fastcall SaveToStream(TStream* Stream) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes IStreamPersist

Description

Saves the implementing class instance to a persistent 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.

See Also