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]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(bv, structure_name, address)

Initialize self.