class ResourceLoader
Defined in:
Encapsulates functionality for loading resource data.
C4Resources.hDefinition
class ResourceLoader
Member Functions
ResourceLoader::GetDataSize |
Returns the size of the resource data. |
ResourceLoader::Read |
Reads some or all of the resource data. |
Constructor
ResourceLoader();
Description
The ResourceLoader class encapsulates functionality for loading resource data outside of a resource object. Upon construction, a loader object is in the closed state. A loader object is opened by calling the Resource::OpenLoader function for the resource object whose data is to be loaded through the loader object.Once a loader object is open, the size of the resource data can be obtained by calling the
ResourceLoader::GetDataSize function. Any part of the data itself can be read into memory using the ResourceLoader::Read function. The resource data can be read into a resource object (in its entirety) by calling the Resource::LoadResource function.
See Also
