pymhf.gui.hexview module#
- class pymhf.gui.hexview.HexView(parent: str | int)#
Bases:
object
- add_snapshot(address: int, size: int | None = None, tag: str | None = None) bool #
Add a snapshot of the data at the specified address to the hex viewer. These memory snapshots will be viewable later from a drop down in the hex viewer.
- Parameters:
address – The absolute memory address to take a snapshot at. Note: The start address of the region will be aligned to a 0x10 byte boundary for convenience.
size – The size of the region to take a snapshot of. Note that if this is larger than 0x1000 (4kb), it will be rounded down to 0x1000. Note: It is recommended to set this value just a bit larger than the expected size of the data.
tag – An optional tag which can be used to identify the snapshot in the selector in the GUI. If not provided it will default to the hex representation of the provided memory address. Note: If the tag already exists, it won’t be overwritten but will be suffixed by a number which automatically increments (this includes auto-generated tags as per above.)
- Returns:
If a memory snapshot was sucessfully taken at the provided address and size this will return True. If the memory at the provided address was unable to be read or captured this will return False.
- Return type:
- load_address(address: int, size: int | None = None) bool #
Load the provided address into the hex viewer.
- Parameters:
address – The absolute memory address to take a snapshot at. Note: The start address of the region will be aligned to a 0x10 byte boundary for convenience.
size – The size of the region to take a snapshot of. Note that if this is larger than 0x1000 (4kb), it will be rounded down to 0x1000. Note: It is recommended to set this value just a bit larger than the expected size of the data.
- Returns:
If a memory snapshot was sucessfully taken at the provided address and size this will return True. If the memory at the provided address was unable to be read or captured this will return False.
- Return type: