Skip to content

TResourceStream

Stream that reads its data from a resource object.

Declaration

Source position: classesh.inc line 1722

type

  TResourceStream = class(TCustomMemoryStream)
  public
    constructor Create(Instance: TFPResourceHMODULE; const ResName: string; 
                  ResType: PAnsiChar);
    constructor Create(Instance: TFPResourceHMODULE; const ResName: string; 
                  ResType: PWideChar);
    constructor CreateFromID(Instance: TFPResourceHMODULE; ResID: Integer; 
                        ResType: PAnsiChar);
    constructor CreateFromID(Instance: TFPResourceHMODULE; ResID: Integer; 
                        ResType: PWideChar);
    destructor Destroy;
  end;

Methods

Member Visibility Description
Create public Creates a new instance of a resource stream.
CreateFromID public Creates a new instance of a resource stream with a resource.
Destroy public Destroys the instance of the resource stream.
See all Methods