TOwnerStream.Create

Create a new instance of TOwnerStream.

Declaration

Source position: classesh.inc line 1151

public 
  constructor Create(ASource: TStream);

Description

Create instantiates a new instance of TOwnerStream and stores the reference to AStream. If SourceOwner is True, the source stream will also be freed when the instance is destroyed.

See also

Name Description
TOwnerStream.Destroy Destroys the TOwnerStream instance and the source stream.
TOwnerStream.Source Reference to the source stream.
TOwnerStream.SourceOwner Indicates whether the ownerstream owns it's source