32 [[nodiscard]]
const byte&
operator[](
size_t address)
const {
33 assert(address < rom.size());
36 [[nodiscard]]
auto size()
const {
return rom.size(); }
37 [[nodiscard]]
auto begin()
const {
return rom.begin(); }
38 [[nodiscard]]
auto end()
const {
return rom.end(); }
41 [[nodiscard]]
const std::string&
getName()
const {
return name; }
42 [[nodiscard]] std::string_view
getDescription()
const {
return description; }
46 void addPadding(
size_t newSize,
byte filler = 0xff);
56 [[nodiscard]]
bool checkSHA1(
const XMLElement& config)
const;
60 std::span<const byte> rom;
73 std::unique_ptr<RomDebuggable> romDebuggable;
This class manages the lifetime of a block of memory.
std::string_view getDescription() const
const Sha1Sum & getSHA1() const
const Sha1Sum & getOriginalSHA1() const
std::string_view getFilename() const
void getInfo(TclObject &result) const
Add dict values with info to result.
const std::string & getName() const
const byte & operator[](size_t address) const
void addPadding(size_t newSize, byte filler=0xff)
This class represents the result of a sha1 calculation (a 160-bit value).
This file implemented 3 utility functions: