summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-02-11 20:17:29 -0500
committerMason Reed <mason@vector35.com>2025-02-12 18:43:02 -0500
commitcce44e00f23841d3709ac9cd4741ee2482b65595 (patch)
tree71bbe73fff32ecbc3b5a01b55b1a599106108ce3 /binaryninjaapi.h
parent1ffdd4da176f1990cdf0ff4d0079a3ccb4e51206 (diff)
Add Symbol constructor for pre-allocated core namespace
This allows a consumer to bypass the alloc + free of the API NameSpace, removing the need for the consumer to manually construct a symbol for said behavior.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index eac04a53..7ec05868 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -3899,6 +3899,8 @@ namespace BinaryNinja {
const NameSpace& nameSpace = NameSpace(DEFAULT_INTERNAL_NAMESPACE), uint64_t ordinal = 0);
Symbol(BNSymbolType type, const std::string& name, uint64_t addr, BNSymbolBinding binding = NoBinding,
const NameSpace& nameSpace = NameSpace(DEFAULT_INTERNAL_NAMESPACE), uint64_t ordinal = 0);
+ Symbol(BNSymbolType type, const std::string& name, uint64_t addr, BNNameSpace* nameSpace,
+ BNSymbolBinding binding = NoBinding, uint64_t ordinal = 0);
Symbol(BNSymbol* sym);
/*!