API:System.Classes.TStringStream.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create; overload;
constructor Create(const AString: string); overload;
constructor Create(const AString: RawByteString); overload;
constructor Create(const AString: string; AEncoding: TEncoding; AOwnsEncoding: Boolean = True); overload;
constructor Create(const AString: string; ACodePage: Integer); overload;
constructor Create(const ABytes: TBytes); overload;

C++

__fastcall TStringStream()/* overload */;
__fastcall TStringStream(const System::UnicodeString AString)/* overload */;
__fastcall TStringStream(const System::RawByteString AString)/* overload */;
__fastcall TStringStream(const System::UnicodeString AString, System::Sysutils::TEncoding* AEncoding, bool AOwnsEncoding)/* overload */;
__fastcall TStringStream(const System::UnicodeString AString, int ACodePage)/* overload */;
__fastcall TStringStream(const System::DynamicArray<System::Byte> ABytes)/* overload */;

Properties

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

Description


Constructs an object and initializes its data before the object is first used.

System.Classes.TStringStream.Create inherits from System.TObject.Create. All content below this line refers to System.TObject.Create.

Constructs an object and initializes its data before the object is first used.

Create constructs an object. The purpose, size, and behavior of objects differ greatly. The Create constructor defined by TObject allocates memory but does not initialize data.

Descendant objects usually define a constructor that creates the particular kind of object and initializes its data.

Note: If an exception escapes from a constructor, the object's destructor is called to clean up the failed instance.

See Also