Cogs.Core
|
Public Member Functions | |
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 void | cancelAsyncFetch (DataFetcherManager::FetchId) |
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. | |
Definition at line 12 of file DataFetcherBase.h.
|
inlinevirtual |
Definition at line 25 of file DataFetcherBase.h.
|
inlinevirtual |
Asynchronously fetches data into memory and forwards it to the provided callback function.
This function must return false immediately if the data referred to by fileName cannot be read by this fetcher.
Definition at line 21 of file DataFetcherBase.h.
|
inlinevirtual |
Fetches data into memory and returns it as a FileContents object.
If the filename cannot be resolved, or the file cannot be found, a nullptr should be returned.
Definition at line 32 of file DataFetcherBase.h.