retdec
|
Classes | |
class | CoffImage |
class | ElfImage |
class | Image |
class | IntelHexImage |
class | MachOImage |
class | PeImage |
class | RawDataImage |
class | Segment |
class | SegmentDataSource |
class | NameGenerator |
class | OverlapResolver |
Enumerations | |
enum class | Overlap { None , OverStart , InMiddle , OverEnd , Full } |
Functions | |
std::unique_ptr< Image > | createImage (const std::string &filePath, bool isRaw=false) |
std::unique_ptr< Image > | createImage (const std::shared_ptr< retdec::fileformat::FileFormat > &fileFormat) |
std::uint64_t | distanceBetween (std::uint64_t value1, std::uint64_t value2) |
|
strong |
std::unique_ptr< Image > retdec::loader::createImage | ( | const std::shared_ptr< retdec::fileformat::FileFormat > & | fileFormat | ) |
std::unique_ptr< Image > retdec::loader::createImage | ( | const std::string & | filePath, |
bool | isRaw | ||
) |
Create instance of Image class from path to file. If the input file cannot be loaded, function will return nullptr
. Loaded image becomes owner of the provided FileFormat
.
filePath | Path to input file. |
isRaw | Is the input a raw binary file format? |
nullptr
if any error std::uint64_t retdec::loader::distanceBetween | ( | std::uint64_t | value1, |
std::uint64_t | value2 | ||
) |
Returns the distance between two values. The distance is absolute value of their subtraction.
value1 | First value. |
value2 | Second value. |