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

Method remove

python/binaryview.py:4548–4565  ·  view source on GitHub ↗

``remove`` removes at most ``length`` bytes from virtual address ``addr``. :param int addr: virtual address to remove from. :param int length: number of bytes to remove. :return: number of bytes removed from virtual address ``addr`` :rtype: int :Example: >>> bv.read(0,8) 'BBBBAA

(self, addr: int, length: int)

Source from the content-addressed store, hash-verified

4546 return core.BNInsertViewBuffer(self.handle, addr, buf.handle)
4547
4548 def remove(self, addr: int, length: int) -> int:
4549 """
4550 ``remove`` removes at most ``length`` bytes from virtual address ``addr``.
4551
4552 :param int addr: virtual address to remove from.
4553 :param int length: number of bytes to remove.
4554 :return: number of bytes removed from virtual address ``addr``
4555 :rtype: int
4556 :Example:
4557
4558 >>> bv.read(0,8)
4559 'BBBBAAAA'
4560 >>> bv.remove(0,4)
4561 4
4562 >>> bv.read(0,4)
4563 'AAAA'
4564 """
4565 return core.BNRemoveViewData(self.handle, addr, length)
4566
4567 def get_entropy(self, addr: int, length: int, block_size: int = 0) -> List[float]:
4568 """

Callers 2

__setitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected