MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / __init__

Method __init__

python/binaryview.py:10124–10134  ·  view source on GitHub ↗
(self, view: 'BinaryView', endian: Optional[Endianness] = None, address: Optional[int] = None)

Source from the content-addressed store, hash-verified

10122 >>>
10123 """
10124 def __init__(self, view: 'BinaryView', endian: Optional[Endianness] = None, address: Optional[int] = None):
10125 _handle = core.BNCreateBinaryReader(view.handle)
10126 assert _handle is not None, "core.BNCreateBinaryReader returned None"
10127 self._handle = _handle
10128 if endian is None:
10129 core.BNSetBinaryReaderEndianness(self._handle, view.endianness)
10130 else:
10131 core.BNSetBinaryReaderEndianness(self._handle, endian)
10132
10133 if address is not None:
10134 self.seek(address)
10135
10136 def __del__(self):
10137 if core is not None:

Callers

nothing calls this directly

Calls 1

seekMethod · 0.95

Tested by

no test coverage detected