binaryninja.binaryview.StructuredDataView¶
-
class
StructuredDataView
(bv, structure_name, address)[source]¶ class StructuredDataView
is a convenience class for reading structured binary data.StructuredDataView can be instantiated as follows:
>>> from binaryninja import * >>> bv = BinaryViewType['Mach-O'].open("/bin/ls") >>> structure = "Elf64_Header" >>> address = bv.start >>> elf = StructuredDataView(bv, structure, address) >>>
Once instantiated, members can be accessed:
>>> print("{:x}".format(elf.machine)) 003e >>>
-
__init__
(bv, structure_name, address)[source]¶ x.__init__(…) initializes x; see help(type(x)) for signature
Methods
__init__
(bv, structure_name, address)x.__init__(…) initializes x; see help(type(x)) for signature -