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.