Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 882 Bytes

TPJResourceFile-LoadFromStream.md

File metadata and controls

25 lines (14 loc) · 882 Bytes

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:

  • Stm: The stream from which the resource file data is loaded.

Raises:

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