blob: 66f68a496954e590d320e75d0a2c13051062f1db [file] [log] [blame]
#pragma once
#include "image_handler.hpp"
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
namespace blobs
{
class HashFileHandler : public ImageHandlerInterface
{
public:
/**
* Create a HashFileHandler.
*/
HashFileHandler() = default;
bool open(const std::string& path) override;
void close() override;
bool write(std::uint32_t offset,
const std::vector<std::uint8_t>& data) override;
private:
std::string path;
};
} // namespace blobs