From fdad629b8e9d859607d70d2712eee1684fd31614 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 7 Nov 2016 19:59:38 -0500 Subject: updated documentation for get_code_refs --- python/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'python') diff --git a/python/__init__.py b/python/__init__.py index 1751fefa..a855d991 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -2490,6 +2490,19 @@ class BinaryView(object): return BasicBlock(self, block) def get_code_refs(self, addr, length = None): + """ + ``get_code_refs`` returns a list of ReferenceSource objects (xrefs or cross-references) that point to the provided virtual address. + + :param int addr: virtual address to query for references + :return: List of References for the given virtual address + :rtype: list(ReferenceSource) + :Example: + + >>> bv.get_code_refs(here) + [] + >>> + + """ count = ctypes.c_ulonglong(0) if length is None: refs = core.BNGetCodeReferences(self.handle, addr, count) -- cgit v1.3.1