blob: 32136bbf610d411e2a022f20a9cc84ba5ac5017d [file] [log] [blame]
#ifndef _RIVE_FILE_ASSET_RESOLVER_HPP_
#define _RIVE_FILE_ASSET_RESOLVER_HPP_
#include <cstdint>
#include <vector>
#include "rive/span.hpp"
namespace rive
{
class FileAsset;
class FileAssetLoader
{
public:
virtual ~FileAssetLoader() {}
/// Load the contents of the given asset
///
/// @param asset describes the asset that Rive is looking for the
/// contents of.
/// @param inBandBytes is a pointer to the bytes in question
/// @returns bool indicating if we are loading or have loaded the contents
virtual bool loadContents(FileAsset& asset, Span<const uint8_t> inBandBytes) = 0;
};
} // namespace rive
#endif