#include <cel_storagecache.h>
This class defines loader class which is used with AdvCachedStorage. 
Duplicate the instance. 
- Returns
- The newly created StorageLoader instance. 
 
 
  
  | 
        
          | virtual Time Celartem::StorageLoader::getLastUpdateTime | ( |  | ) | const |  | pure virtual | 
 
This method returns the last update time of the file. 
- Returns
- The last update time. 
 
 
  
  | 
        
          | virtual uint64_t Celartem::StorageLoader::getSize | ( |  | ) | const |  | pure virtual | 
 
Return the size of the storage.
- Returns
- The size of the storage.
 If the size is not known, this method should return 0xffffffffffffffff.
 
 
  
  | 
        
          | virtual String Celartem::StorageLoader::getStorageId | ( |  | ) | const |  | pure virtual | 
 
Return the identifier of the storage. 
- Returns
- The identifier (usually an URI). 
 
 
  
  | 
        
          | virtual StorageRange Celartem::StorageLoader::load | ( | Storage * | inStorage, |  
          |  |  | uint64_t | inPos, |  
          |  |  | size_t | inSize |  
          |  | ) |  |  |  | pure virtual | 
 
Load a range of storage which contains the range specified by inPos and inSize. 
- Parameters
- 
  
    | inStorage | Storage to written on. |  | inPos | The position of the storage range. |  | inSize | The size of the storage range. |  
 
- Returns
- The range actually loaded by this call. 
 
 
  
  | 
        
          | virtual void Celartem::StorageLoader::setBufferingSize | ( | size_t | inSize = 1024 | ) |  |  | pure virtual | 
 
Set the buffering size. The buffering size has very large impact on the networking performance. 
- Parameters
- 
  
    | inSize | Buffering size in bytes. The default is 1024 bytes. |  
 
 
 
Set the callback which is called when calls to load take long. 
- Parameters
- 
  
    | inCallback | Pointer to a callback function. |  | inContext | Context for the callback function. |  
 
 
 
The documentation for this class was generated from the following file: