We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BinaryViewExt::type_libraries
1 parent 8c7f0bc commit 21796e5Copy full SHA for 21796e5
1 file changed
rust/src/binary_view.rs
@@ -2134,6 +2134,12 @@ pub trait BinaryViewExt: BinaryViewBase {
2134
unsafe { TypeContainer::from_raw(type_container_ptr.unwrap()) }
2135
}
2136
2137
+ fn type_libraries(&self) -> Array<TypeLibrary> {
2138
+ let mut count = 0;
2139
+ let result = unsafe { BNGetBinaryViewTypeLibraries(self.as_ref().handle, &mut count) };
2140
+ unsafe { Array::new(result, count, ()) }
2141
+ }
2142
+
2143
/// Make the contents of a type library available for type/import resolution
2144
fn add_type_library(&self, library: &TypeLibrary) {
2145
unsafe { BNAddBinaryViewTypeLibrary(self.as_ref().handle, library.as_raw()) }
0 commit comments