blob: edaf2bf84d22c4e15a83ef2cd8d615ec3f9918d5 [file]
#ifndef _RIVE_BLOB_ASSET_HPP_
#define _RIVE_BLOB_ASSET_HPP_
#include "rive/generated/assets/blob_asset_base.hpp"
#include "rive/simple_array.hpp"
namespace rive
{
class BlobAsset : public BlobAssetBase
{
public:
bool decode(SimpleArray<uint8_t>&, Factory*) override;
std::string fileExtension() const override;
Span<const uint8_t> bytes() const { return m_bytes; }
private:
SimpleArray<uint8_t> m_bytes;
};
} // namespace rive
#endif