Mercurial > lcfOS
diff python/utils/hexfile.py @ 306:b145f8e6050b
Start on c3 rewrite
author | Windel Bouwman |
---|---|
date | Mon, 09 Dec 2013 19:00:21 +0100 |
parents | 534b94b40aa8 |
children | 67a584582aee |
line wrap: on
line diff
--- a/python/utils/hexfile.py Fri Dec 06 13:50:38 2013 +0100 +++ b/python/utils/hexfile.py Mon Dec 09 19:00:21 2013 +0100 @@ -81,7 +81,7 @@ raise HexFileException('record type {0} not implemented'.format(typ)) def __repr__(self): - size = sum(len(r.data) for r in self.regions) + size = sum(r.Size for r in self.regions) return 'Hexfile containing {} bytes'.format(size) def dump(self): @@ -150,5 +150,9 @@ self.data = self.data + d @property + def Size(self): + return len(self.data) + + @property def EndAddress(self): return self.address + len(self.data)