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

Method seek

python/binaryview.py:10758–10773  ·  view source on GitHub ↗

``seek`` update internal offset to ``offset``. :param int offset: offset to set the internal offset to :rtype: None :Example: >>> hex(bw.offset) '0x100000008L' >>> bw.seek(0x100000000) >>> hex(bw.offset) '0x100000000L' >>>

(self, offset: int)

Source from the content-addressed store, hash-verified

10756 return self.write(struct.pack(">Q", value), except_on_relocation=except_on_relocation)
10757
10758 def seek(self, offset: int) -> None:
10759 """
10760 ``seek`` update internal offset to ``offset``.
10761
10762 :param int offset: offset to set the internal offset to
10763 :rtype: None
10764 :Example:
10765
10766 >>> hex(bw.offset)
10767 '0x100000008L'
10768 >>> bw.seek(0x100000000)
10769 >>> hex(bw.offset)
10770 '0x100000000L'
10771 >>>
10772 """
10773 core.BNSeekBinaryWriter(self._handle, offset)
10774
10775 def seek_relative(self, offset: int) -> None:
10776 """

Callers 12

__init__Method · 0.95
writeMethod · 0.95
write8Method · 0.95
write16Method · 0.95
write32Method · 0.95
write64Method · 0.95
write16leMethod · 0.95
write32leMethod · 0.95
write64leMethod · 0.95
write16beMethod · 0.95
write32beMethod · 0.95
write64beMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected