diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-09-08 20:04:36 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-10-21 13:52:39 -0400 |
| commit | cae26921cf2b2e564f66e58b77a3963fe36f6d2d (patch) | |
| tree | bfa7ec8de23c1de758463a894583086c8d0b050e /binaryview.cpp | |
| parent | 11ad1fc28470b863326f7136cf9b5723a06e89d3 (diff) | |
Add constant renderer API
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 66b7e77f..292b11ac 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -662,6 +662,12 @@ StringRef::StringRef(BNStringRef* ref) } +StringRef::StringRef(const std::string& str) +{ + m_ref = BNCreateStringRefOfLength(str.c_str(), str.size()); +} + + StringRef::StringRef(const StringRef& other) { m_ref = BNDuplicateStringRef(other.m_ref); |
