Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

LoadFromStream method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceFile

Applies to: ~>1.0

procedure LoadFromStream(const Stm: TStream);

Loads a resource file from a stream. The data is read from the current location in the stream. Loading the data updates the stream position. New TPJResourceEntry objects are created for each resource in the data stream.

Any TPJResourceEntry objects that existed before calling LoadFromStream are freed. You should be careful not to access any existing references to such objects after calling LoadFromStream.

Parameter:

Raises:

An exception is raised if the stream does not contain valid resource file data.