diff options
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 0dd6d8f8..feb3b765 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -4610,6 +4610,14 @@ bool BinaryView::FindAllConstant(uint64_t start, uint64_t end, uint64_t constant } +bool BinaryView::Search(const string& query, const std::function<bool(uint64_t offset, const DataBuffer& buffer)>& otherCallback) +{ + MatchCallbackContextForDataBuffer mc; + mc.func = otherCallback; + return BNSearch(m_object, query.c_str(), &mc, MatchCallbackForDataBuffer); +} + + void BinaryView::Reanalyze() { BNReanalyzeAllFunctions(m_object); |
