diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-08-29 13:25:32 +0200 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-08-29 13:25:32 +0200 |
| commit | ea45a73e9d28407afd65a794253aad061ce15252 (patch) | |
| tree | 5bcd31a1bd000e9db88f40fe2beb4dc7f4a097bd /miasm2/ir/analysis.py | |
| parent | bd1dfe0154b07b969d7d02661b9b562cfdb05047 (diff) | |
| download | miasm-ea45a73e9d28407afd65a794253aad061ce15252.tar.gz miasm-ea45a73e9d28407afd65a794253aad061ce15252.zip | |
IRA: Add methods to get char, short, int, long, pointer sizes
Diffstat (limited to 'miasm2/ir/analysis.py')
| -rw-r--r-- | miasm2/ir/analysis.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/miasm2/ir/analysis.py b/miasm2/ir/analysis.py index 5b65acca..c20c7f7a 100644 --- a/miasm2/ir/analysis.py +++ b/miasm2/ir/analysis.py @@ -226,3 +226,23 @@ class ira: eq irb.irs = [eqs] irb.lines = [None] + + def sizeof_char(self): + "Return the size of a char in bits" + raise NotImplementedError("Abstract method") + + def sizeof_short(self): + "Return the size of a short in bits" + raise NotImplementedError("Abstract method") + + def sizeof_int(self): + "Return the size of an int in bits" + raise NotImplementedError("Abstract method") + + def sizeof_long(self): + "Return the size of a long in bits" + raise NotImplementedError("Abstract method") + + def sizeof_pointer(self): + "Return the size of a void* in bits" + raise NotImplementedError("Abstract method") |