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

Method read_int

python/binaryview.py:4467–4474  ·  view source on GitHub ↗
(self, address: int, size: int, sign: bool = True, endian: Optional[Endianness] = None)

Source from the content-addressed store, hash-verified

4465 return bytes(buf)
4466
4467 def read_int(self, address: int, size: int, sign: bool = True, endian: Optional[Endianness] = None) -> int:
4468 _endian = self.endianness
4469 if endian is not None:
4470 _endian = endian
4471 data = self.read(address, size)
4472 if len(data) != size:
4473 raise ValueError(f"Couldn't read {size} bytes from address: {address:#x}")
4474 return TypedDataAccessor.int_from_bytes(data, size, sign, _endian)
4475
4476 def read_pointer(self, address: int, size: Optional[int] = None) -> int:
4477 if size is None:

Callers 1

read_pointerMethod · 0.95

Calls 2

readMethod · 0.95
int_from_bytesMethod · 0.80

Tested by

no test coverage detected