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

Method read64le

python/binaryview.py:10362–10382  ·  view source on GitHub ↗

``read64le`` returns an eight byte little endian integer from offset incrementing the offset by eight. :param int address: offset to set the internal offset before reading :return: a eight byte integer at offset. :rtype: int, or None on failure :Example: >>> br.seek(0x100000000) >

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

Source from the content-addressed store, hash-verified

10360 return struct.unpack("<I", result)[0]
10361
10362 def read64le(self, address: Optional[int] = None) -> Optional[int]:
10363 """
10364 ``read64le`` returns an eight byte little endian integer from offset incrementing the offset by eight.
10365
10366 :param int address: offset to set the internal offset before reading
10367 :return: a eight byte integer at offset.
10368 :rtype: int, or None on failure
10369 :Example:
10370
10371 >>> br.seek(0x100000000)
10372 >>> hex(br.read64le())
10373 '0x1000007feedfacf'
10374 >>>
10375 """
10376 if address is not None:
10377 self.seek(address)
10378
10379 result = self.read(8)
10380 if (result is None) or (len(result) != 8):
10381 return None
10382 return struct.unpack("<Q", result)[0]
10383
10384 def read16be(self, address: Optional[int] = None) -> Optional[int]:
10385 """

Callers

nothing calls this directly

Calls 2

seekMethod · 0.95
readMethod · 0.95

Tested by

no test coverage detected