openMSX
|
#include <RomDatabase.hh>
Classes | |
struct | Entry |
Public Types | |
using | RomDB = std::vector< Entry > |
Public Member Functions | |
RomDatabase (CliComm &cliComm) | |
const RomInfo * | fetchRomInfo (const Sha1Sum &sha1sum) const |
Lookup an entry in the database by sha1sum. More... | |
const char * | getBufferStart () const |
Definition at line 13 of file RomDatabase.hh.
using openmsx::RomDatabase::RomDB = std::vector<Entry> |
Definition at line 20 of file RomDatabase.hh.
openmsx::RomDatabase::RomDatabase | ( | CliComm & | cliComm | ) |
Definition at line 567 of file RomDatabase.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data(), Math::e, hash_set< Value, Extractor, Hasher, Equal >::empty(), rapidsax::EXTRA_BUFFER_SPACE, openmsx::CliComm::printWarning(), openmsx::MemBuffer< T, ALIGNMENT >::resize(), utf8::unchecked::size(), strAppend(), and openmsx::systemFileContext().
Lookup an entry in the database by sha1sum.
Returns nullptr when no corresponding entry was found.
Definition at line 618 of file RomDatabase.cc.
References binary_find(), and openmsx::RomDatabase::Entry::sha1.
Referenced by openmsx::RomFactory::create().
|
inline |
Definition at line 29 of file RomDatabase.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().