b.out binary loader. More...
#include <FileLoader_bout.h>
Public Member Functions | |
| FileLoader_bout (const string &filename) | |
| ~FileLoader_bout () | |
| string | DetectFileType (unsigned char *buf, size_t buflen, float &matchness) const |
| Attempt to detect file type. More... | |
| bool | LoadIntoComponent (refcount_ptr< Component > component, ostream &messages) const |
| Loads the file into a Component. More... | |
Public Member Functions inherited from FileLoaderImpl | |
| FileLoaderImpl (const string &filename) | |
| Constructs a file loader. More... | |
| virtual | ~FileLoaderImpl () |
Public Member Functions inherited from ReferenceCountable | |
| ReferenceCountable () | |
| Default constructor, which initializes the reference count to zero. More... | |
| ~ReferenceCountable () | |
Static Public Member Functions | |
| static void | RunUnitTests (int &nSucceeded, int &nFailures) |
Static Public Member Functions inherited from UnitTestable | |
| static void | RunUnitTests (int &nSucceeded, int &nFailures) |
| Runs unit test cases. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from FileLoaderImpl | |
| const string & | Filename () const |
b.out binary loader.
This file loader is used for reading i960 binaries.
Definition at line 43 of file FileLoader_bout.h.
| FileLoader_bout::FileLoader_bout | ( | const string & | filename | ) |
Definition at line 44 of file FileLoader_bout.cc.
|
inline |
Definition at line 50 of file FileLoader_bout.h.
|
virtual |
Attempt to detect file type.
| buf | A buffer containing the header of the file. |
| buflen | The length of the buffer. |
| matchness | Set to a value between 0.0 and 1.0, indicating the match certainty. |
Implements FileLoaderImpl.
Definition at line 50 of file FileLoader_bout.cc.
Referenced by LoadIntoComponent().
|
virtual |
Loads the file into a Component.
| component | The AddressDataBus component to load the file into. (This is usually a CPUComponent.) |
| messages | An output stream where debug messages can be put. |
Implements FileLoaderImpl.
Definition at line 80 of file FileLoader_bout.cc.
References Component::AsAddressDataBus(), BigEndian, DetectFileType(), FileLoaderImpl::Filename(), Component::GetVariable(), and LittleEndian.
|
static |
1.8.17