Sign in Join
FPDoc Onlineexperiment

TResourceDataStream.Create constructor

Member of TResourceDataStreampublicIn unit resdatastream

Creates a new object

Declaration

pascal
constructor Create(aStream: TStream; aResource: TAbstractResource; 
 aSize: Int64; aClass: TCachedStreamClass)

Arguments

aStream

The stream which resource data must be read from. It can be nil

aResource

The resource whose data must be read

aSize

The size of the resource data

aClass

The class to use to create the underlying cached stream

Description

A new TResourceDataStream object is created.

If aStream is nil, the underlying stream is a memory stream. Otherwise, a cached stream of the class specified in aClass is created and set as the underlying stream.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.