Defined in:Encapsulates functionality for loading resource data.
||Returns the size of the resource data.|
||Reads some or all of the resource data.|
ResourceLoaderclass 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::OpenLoaderfunction 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::GetDataSizefunction. Any part of the data itself can be read into memory using the
ResourceLoader::Readfunction. The resource data can be read into a resource object (in its entirety) by calling the