diff options
| author | Brian Potchik <brian@vector35.com> | 2025-03-17 13:12:18 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-03-17 13:12:18 -0400 |
| commit | eeb1402948a3bc9ef66635f42229ab165b163285 (patch) | |
| tree | 52385ca71e236b2989e665f345aed593f7943223 /binaryview.cpp | |
| parent | 1652efdc43aa3acbd570c1f042a35da458538bb4 (diff) | |
Add search mode detection feedback in find dialog for advanced binary search.
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 981e8329..f37057e3 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -4795,6 +4795,15 @@ bool BinaryView::FindAllConstant(uint64_t start, uint64_t end, uint64_t constant } +string BinaryView::DetectSearchMode(const string& query) +{ + char* searchMode = BNDetectSearchMode(query.c_str()); + string result = searchMode; + BNFreeString(searchMode); + return result; +} + + bool BinaryView::Search(const string& query, const std::function<bool(size_t current, size_t total)>& progressCallback, const std::function<bool(uint64_t offset, const DataBuffer& buffer)>& matchCallback) { ProgressContext fp; |
