summaryrefslogtreecommitdiff
path: root/rust/src/section.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-07 23:20:15 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commit36a7bb2da7f77074203f5d785dbd82afe1befcad (patch)
tree869974517d8a77badfb67366e01d20c048659e0b /rust/src/section.rs
parentf2ecf39fac3b4d7bb97d254ba3b2552b2ddd90ad (diff)
[Rust] Retain core string for section strings
Might want to key off the section string in the core, so we should give it back as a `BnString`
Diffstat (limited to 'rust/src/section.rs')
-rw-r--r--rust/src/section.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/section.rs b/rust/src/section.rs
index a86c54e2..77e40232 100644
--- a/rust/src/section.rs
+++ b/rust/src/section.rs
@@ -121,12 +121,12 @@ impl Section {
unsafe { BNSectionGetSemantics(self.handle).into() }
}
- pub fn linked_section(&self) -> String {
- unsafe { BnString::into_string(BNSectionGetLinkedSection(self.handle)) }
+ pub fn linked_section(&self) -> BnString {
+ unsafe { BnString::from_raw(BNSectionGetLinkedSection(self.handle)) }
}
- pub fn info_section(&self) -> String {
- unsafe { BnString::into_string(BNSectionGetInfoSection(self.handle)) }
+ pub fn info_section(&self) -> BnString {
+ unsafe { BnString::from_raw(BNSectionGetInfoSection(self.handle)) }
}
pub fn info_data(&self) -> u64 {