Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking out our value and address types into their own headers
makes it a little more clear to work with.
- Loading branch information
Showing
4 changed files
with
359 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
#ifndef ADDRESS_H_ | ||
#define ADDRESS_H_ | ||
|
||
#include "Value.h" | ||
|
||
namespace edb { | ||
|
||
class EDB_EXPORT address_t : public value64 { | ||
public: | ||
QString toPointerString(bool createdFromNativePointer = true) const; | ||
QString toHexString() const; | ||
|
||
template <class SmallData> | ||
static address_t fromZeroExtended(const SmallData& data) { | ||
return value64::fromZeroExtended(data); | ||
} | ||
|
||
template<class T> | ||
address_t(const T& val) : value64(val) { | ||
} | ||
|
||
address_t() = default; | ||
void normalize(); | ||
}; | ||
|
||
using reg_t = address_t; | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.