From cae26921cf2b2e564f66e58b77a3963fe36f6d2d Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 8 Sep 2025 20:04:36 -0400 Subject: Add constant renderer API --- binaryview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'binaryview.cpp') 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); -- cgit v1.3.1