Skip to content

TResourceDataStream.Create

Creates a new object

Declaration

Source position: resdatastream.pp line 81

public 
constructor TResourceDataStream.Create(aStream: TStream; 
                                      aResource: TAbstractResource; 
                                      aSize: Int64; 
                                      aClass: TCachedStreamClass);

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

Name Description
TResourceDataStream Stream class that provides copy-on-write functionality
TCachedDataStream Base cached stream class
TResourceDataStream.SetCustomStream Sets a custom stream as the underlying stream