diff options
Diffstat (limited to 'rust/src/section.rs')
| -rw-r--r-- | rust/src/section.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rust/src/section.rs b/rust/src/section.rs index c88ef9b0..46a201d4 100644 --- a/rust/src/section.rs +++ b/rust/src/section.rs @@ -90,12 +90,12 @@ impl Section { SectionBuilder::new(name, range) } - pub fn name(&self) -> BnString { - unsafe { BnString::from_raw(BNSectionGetName(self.handle)) } + pub fn name(&self) -> String { + unsafe { BnString::into_string(BNSectionGetName(self.handle)) } } - pub fn section_type(&self) -> BnString { - unsafe { BnString::from_raw(BNSectionGetType(self.handle)) } + pub fn section_type(&self) -> String { + unsafe { BnString::into_string(BNSectionGetType(self.handle)) } } pub fn start(&self) -> u64 { @@ -122,12 +122,12 @@ impl Section { unsafe { BNSectionGetSemantics(self.handle).into() } } - pub fn linked_section(&self) -> BnString { - unsafe { BnString::from_raw(BNSectionGetLinkedSection(self.handle)) } + pub fn linked_section(&self) -> String { + unsafe { BnString::into_string(BNSectionGetLinkedSection(self.handle)) } } - pub fn info_section(&self) -> BnString { - unsafe { BnString::from_raw(BNSectionGetInfoSection(self.handle)) } + pub fn info_section(&self) -> String { + unsafe { BnString::into_string(BNSectionGetInfoSection(self.handle)) } } pub fn info_data(&self) -> u64 { |
