| 1 |
#ifndef PATCHINTERFACE_HH |
| 2 |
#define PATCHINTERFACE_HH |
| 3 |
|
| 4 |
#include "Filename.hh" |
| 5 |
|
| 6 |
#include <cstdint> |
| 7 |
#include <span> |
| 8 |
#include <vector> |
| 9 |
|
| 10 |
namespace openmsx { |
| 11 |
|
| 12 |
class PatchInterface |
| 13 |
{ |
| 14 |
public: |
| 15 |
virtual ~PatchInterface() = default; |
| 16 |
|
| 17 |
virtual void copyBlock(size_t src, std::span<uint8_t> dst) const = 0; |
| 18 |
[[nodiscard]] virtual size_t getSize() const = 0; |
| 19 |
[[nodiscard]] virtual std::vector<Filename> getFilenames() const = 0; |
| 20 |
[[nodiscard]] virtual bool isEmptyPatch() const { return false; } |
| 21 |
}; |
| 22 |
|
| 23 |
} |
| 24 |
|
| 25 |
#endif |