10 #include <string_view>
30 [[nodiscard]]
const byte&
operator[](
unsigned address)
const {
31 assert(address < size);
34 [[nodiscard]]
unsigned getSize()
const {
return size; }
37 [[nodiscard]]
const std::string&
getName()
const {
return name; }
38 [[nodiscard]] std::string_view
getDescription()
const {
return description; }
42 void addPadding(
unsigned newSize,
byte filler = 0xff);
47 [[nodiscard]]
bool checkSHA1(
const XMLElement& config)
const;
65 std::unique_ptr<RomDebuggable> romDebuggable;
std::string_view getDescription() const
const Sha1Sum & getSHA1() const
const byte & operator[](unsigned address) const
const Sha1Sum & getOriginalSHA1() const
std::string_view getFilename() const
Rom(std::string name, static_string_view description, const DeviceConfig &config, const std::string &id={})
const std::string & getName() const
void addPadding(unsigned newSize, byte filler=0xff)
This class represents the result of a sha1 calculation (a 160-bit value).
std::unique_ptr< Context > context
This file implemented 3 utility functions: