ROSE
0.11.131.0
|
Definition at line 16 of file MagicNumber.h.
Public Types | |
enum | Mechanism { FAST, SLOW, NONE } |
How to search for magic numbers. More... | |
Public Member Functions | |
MagicNumber () | |
Create a magic number analyzer. More... | |
Mechanism | mechanism () const |
Property: The mechanism being used to find magic numbers. More... | |
std::string | identify (const MemoryMap::Ptr &, rose_addr_t va) const |
Identify the magic number at the specified address. More... | |
size_t | maxBytesToCheck () const |
Property: Max number of bytes to check at once. More... | |
void | maxBytesToCheck (size_t n) |
Property: Max number of bytes to check at once. More... | |
How to search for magic numbers.
See MagicNumber::mechanism property.
Definition at line 21 of file MagicNumber.h.
|
inline |
Create a magic number analyzer.
Definition at line 34 of file MagicNumber.h.
|
inline |
Property: The mechanism being used to find magic numbers.
Multiple machanisms are available:
FAST
.SLOW
.std::runtime_error
.This property is read-only.
Definition at line 53 of file MagicNumber.h.
|
inline |
Property: Max number of bytes to check at once.
This property is the maximum number of bytes that should be passed at once to the magic-number checking funtions. The library imposes a hard-coded limit, but the user may set this to a lower value to gain speed. Trying to set this to a higher value than the hard-coded limit will result in using the hard-coded limit.
Definition at line 62 of file MagicNumber.h.
|
inline |
Property: Max number of bytes to check at once.
This property is the maximum number of bytes that should be passed at once to the magic-number checking funtions. The library imposes a hard-coded limit, but the user may set this to a lower value to gain speed. Trying to set this to a higher value than the hard-coded limit will result in using the hard-coded limit.
Definition at line 63 of file MagicNumber.h.
std::string Rose::BinaryAnalysis::MagicNumber::identify | ( | const MemoryMap::Ptr & | , |
rose_addr_t | va | ||
) | const |
Identify the magic number at the specified address.