3#include "DataFetcherManager.h"
5#include "Foundation/Platform/IO.h"
21 virtual bool fetchAsync(
const std::string& ,
const FileContents::Callback& , uint64_t , uint64_t , DataFetcherManager::FetchId ,
FileContentsHints ) {
25 virtual void cancelAsyncFetch(DataFetcherManager::FetchId ) { }
33 return IO::readFileSync(fileName, offset, size, hints);
virtual bool fetchAsync(const std::string &, const FileContents::Callback &, uint64_t, uint64_t, DataFetcherManager::FetchId, FileContentsHints)
Asynchronously fetches data into memory and forwards it to the provided callback function.
virtual FileContents::Ptr fetchSync(const std::string &fileName, uint64_t offset, uint64_t size, FileContentsHints hints)
Fetches data into memory and returns it as a FileContents object.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Contains all Cogs related functionality.