System.Classes.TStreamAdapter.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(Stream: TStream; Ownership: TStreamOwnership = soReference);

C++

__fastcall TStreamAdapter(TStream* Stream, TStreamOwnership Ownership);

Properties

Type Visibility Source Unit Parent
constructor public
System.Classes.pas
System.Classes.hpp
System.Classes TStreamAdapter

Description

Creates an instance of a TStreamAdapter object.

Call Create to instantiate a TStreamAdapter object that implements the IStream interface using the stream object specified by Stream. Ownership initializes the StreamOwnership property, indicating whether the TStreamAdapter object is responsible for freeing the stream specified by Stream from its own destructor.

See Also