MCPcopy Create free account
hub / github.com/qilingframework/qiling / read

Method read

qiling/os/memory.py:349–359  ·  view source on GitHub ↗

Read bytes from memory. Args: addr: source address size: amount of bytes to read Returns: bytes located at the specified address

(self, addr: int, size: int)

Source from the content-addressed store, hash-verified

347 self.map_mmio(lbound, size, handler, label)
348
349 def read(self, addr: int, size: int) -> bytearray:
350 """Read bytes from memory.
351
352 Args:
353 addr: source address
354 size: amount of bytes to read
355
356 Returns: bytes located at the specified address
357 """
358
359 return self.ql.uc.mem_read(addr, size)
360
361 def read_ptr(self, addr: int, size: int = 0, *, signed = False) -> int:
362 """Read an integer value from a memory address.

Callers 4

__read_stringMethod · 0.95
saveMethod · 0.95
read_ptrMethod · 0.95
searchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected