Skip to content

TResourceDataStream.SetCustomStream

Sets a custom stream as the underlying stream

Declaration

Source position: resdatastream.pp line 84

public 
procedure TResourceDataStream.SetCustomStream(aStream: TStream);

Description

This method sets a custom stream as the underlying stream.

If aStream is nil, a new memory stream is used as the underlying stream. This can be used to remove a previously set custom stream as the underlying stream.

Usually it is called by TAbstractResource.SetCustomRawDataStream.

See also

Name Description
TResourceDataStream Stream class that provides copy-on-write functionality
TAbstractResource.SetCustomRawDataStream Sets a custom stream as the underlying stream for RawData