From 98a5094bea61e02fb9184707b8bad6e09b9f5574 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 23 Apr 2024 14:21:30 -0400 Subject: initial advanced binary search documentation --- python/binaryview.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python') diff --git a/python/binaryview.py b/python/binaryview.py index d740ce92..9ef7a913 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -8700,6 +8700,15 @@ class BinaryView: :return: A generator object that yields the offset and matched DataBuffer for each match found. :rtype: QueueGenerator + :Example: + >>> from binaryninja import load + >>> bv = load('/bin/ls') + >>> print(bv) + + >>> bytes(list(bv.search("50 ?4"))[0][1]).hex() + '5004' + >>> bytes(list(bv.search("[\\x20-\\x25][\\x60-\\x67]"))[0][1]).hex() + '2062' """ if start is None: start = self.start -- cgit v1.3.1