Hexfile manipulation

« St link | Hexfile manipulation | Compiler design »

Hexfile manipulation

class ppci.utils.hexfile.HexFile

Represents an intel hexfile

>>> from utils import HexFile
>>> h = HexFile()
>>> h.dump()
Hexfile containing 0 bytes
>>> h.addRegion(0, bytes([1,2,3]))
>>> h
Hexfile containing 3 bytes