Skip to content

TStreamAdapter

Implements IStream for TStream descendants.

Declaration

Source position: classesh.inc line 1781

type

  TStreamAdapter = class(TInterfacedObject, IStream)
  public
    constructor Create;
    destructor Destroy;
    function Read : HRESULT; stdcall;
    function Write : HRESULT; stdcall;
    function Seek : HRESULT; stdcall;
    function SetSize : HRESULT; stdcall;
    function CopyTo : HRESULT; stdcall;
    function Commit : HRESULT; stdcall;
    function Revert : HRESULT; stdcall;
    function LockRegion : HRESULT; stdcall;
    function UnlockRegion : HRESULT; stdcall;
    function Stat : HRESULT; stdcall;
    function Clone : HRESULT; stdcall;
    property Stream: TStream; {r}
    property StreamOwnership: TStreamOwnership; {rw}
  end;

Properties

Member Visibility Description
Stream read only public Stream on which adaptor works.
StreamOwnership public Determines what happens with the stream when the adaptor is freed.
See all Properties

Methods

Member Visibility Description
Clone public Clone the stream.
Commit public Commit data to the stream.
CopyTo public Copy data to destination stream.
Create public Create a new instance of TStreamAdapter.
Destroy public Free the TStreamAdapter instance.
LockRegion public Lock a region of the stream.
Read public Read from the stream.
Revert public Revert operations on the stream.
Seek public Set the stream position.
SetSize public Set the stream size.
Stat public Return statistical data about the stream.
UnlockRegion public Unlock a region of the stream.
Write public Write to the stream.
See all Methods