We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Section::name
BnString
1 parent 5c90674 commit d3327e5Copy full SHA for d3327e5
rust/src/section.rs
@@ -89,8 +89,8 @@ impl Section {
89
SectionBuilder::new(name, range)
90
}
91
92
- pub fn name(&self) -> String {
93
- unsafe { BnString::into_string(BNSectionGetName(self.handle)) }
+ pub fn name(&self) -> BnString {
+ unsafe { BnString::from_raw(BNSectionGetName(self.handle)) }
94
95
96
pub fn section_type(&self) -> String {
0 commit comments