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

Method read64

python/binaryview.py:10296–10316  ·  view source on GitHub ↗

``read64`` returns an eight byte integer from offset incrementing the offset by eight, using specified endianness. :param int address: offset to set the internal offset before reading :return: an eight byte integer at offset. :rtype: int, or None on failure :Example: >>> br.seek(0x10

(self, address: Optional[int] = None)

Source from the content-addressed store, hash-verified

10294 return result.value
10295
10296 def read64(self, address: Optional[int] = None) -> Optional[int]:
10297 """
10298 ``read64`` returns an eight byte integer from offset incrementing the offset by eight, using specified endianness.
10299
10300 :param int address: offset to set the internal offset before reading
10301 :return: an eight byte integer at offset.
10302 :rtype: int, or None on failure
10303 :Example:
10304
10305 >>> br.seek(0x100000000)
10306 >>> hex(br.read64())
10307 '0x1000007feedfacfL'
10308 >>>
10309 """
10310 if address is not None:
10311 self.seek(address)
10312
10313 result = ctypes.c_ulonglong()
10314 if not core.BNRead64(self._handle, result):
10315 return None
10316 return result.value
10317
10318 def read16le(self, address: Optional[int] = None) -> Optional[int]:
10319 """

Callers

nothing calls this directly

Calls 1

seekMethod · 0.95

Tested by

no test coverage detected