EmptyPatch.hh 492 B

1234567891011121314151617181920212223242526
  1. #ifndef EMPTYPATCH_HH
  2. #define EMPTYPATCH_HH
  3. #include "PatchInterface.hh"
  4. namespace openmsx {
  5. class EmptyPatch final : public PatchInterface
  6. {
  7. public:
  8. EmptyPatch(const byte* block, size_t size);
  9. void copyBlock(size_t src, byte* dst, size_t num) const override;
  10. size_t getSize() const override;
  11. std::vector<Filename> getFilenames() const override;
  12. bool isEmptyPatch() const override { return true; }
  13. private:
  14. const byte* block;
  15. const size_t size;
  16. };
  17. } // namespace openmsx
  18. #endif