Skip to content

TStreamOwnership

Determines the ownership of a TStreamAdapter.

Declaration

Source position: classesh.inc line 1778

type
  TStreamOwnership = (soReference,soOwned)

Values

Value Description
soReference Stream is referenced only, it is not freed by the adapter.
soOwned Stream is owned: it will be freed when the adapter is freed.

Description

The ownership of a streamadapter determines what happens with the stream on which a TStreamAdapter acts, when the adapter is freed.

See also

Name Description
TStreamAdapter Implements IStream for TStream descendants.
#rtl.types.IStream COM stream abstraction.