openMSX
Classes | Public Types | Public Member Functions | List of all members
openmsx::RomDatabase Class Reference

#include <RomDatabase.hh>

Classes

struct  Entry
 

Public Types

using RomDB = std::vector< Entry >
 

Public Member Functions

 RomDatabase (CliComm &cliComm)
 
const RomInfofetchRomInfo (const Sha1Sum &sha1sum) const
 Lookup an entry in the database by sha1sum. More...
 
const char * getBufferStart () const
 

Detailed Description

Definition at line 13 of file RomDatabase.hh.

Member Typedef Documentation

◆ RomDB

using openmsx::RomDatabase::RomDB = std::vector<Entry>

Definition at line 20 of file RomDatabase.hh.

Constructor & Destructor Documentation

◆ RomDatabase()

openmsx::RomDatabase::RomDatabase ( CliComm cliComm)

Member Function Documentation

◆ fetchRomInfo()

const RomInfo * openmsx::RomDatabase::fetchRomInfo ( const Sha1Sum sha1sum) const

Lookup an entry in the database by sha1sum.

Returns nullptr when no corresponding entry was found.

Definition at line 617 of file RomDatabase.cc.

References end(), ranges::lower_bound(), and openmsx::RomDatabase::Entry::sha1.

Referenced by openmsx::RomFactory::create().

◆ getBufferStart()

const char* openmsx::RomDatabase::getBufferStart ( ) const
inline

Definition at line 29 of file RomDatabase.hh.

References openmsx::MemBuffer< T, ALIGNMENT >::data().


The documentation for this class was generated from the following files: