diff options
| -rw-r--r-- | miasm2/analysis/modularintervals.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/analysis/modularintervals.py b/miasm2/analysis/modularintervals.py index 14092931..2554339d 100644 --- a/miasm2/analysis/modularintervals.py +++ b/miasm2/analysis/modularintervals.py @@ -452,6 +452,10 @@ class ModularIntervals(object): def __iter__(self): return iter(self.intervals) + @property + def length(self): + return self.intervals.length + def __contains__(self, other): if isinstance(other, ModularIntervals): other = other.intervals |