MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / export_object_to_library

Method export_object_to_library

rust/src/binary_view.rs:1776–1792  ·  view source on GitHub ↗

Recursively exports `type_obj` into `lib` as a type with name `name` As other referenced types are encountered, they are either copied into the destination type library or else the type library that provided the referenced type is added as a dependency for the destination library.

(
        &self,
        lib: &TypeLibrary,
        name: T,
        type_obj: &Type,
    )

Source from the content-addressed store, hash-verified

1774 /// As other referenced types are encountered, they are either copied into the destination type library or
1775 /// else the type library that provided the referenced type is added as a dependency for the destination library.
1776 fn export_object_to_library<T: Into<QualifiedName>>(
1777 &self,
1778 lib: &TypeLibrary,
1779 name: T,
1780 type_obj: &Type,
1781 ) {
1782 let mut raw_name = QualifiedName::into_raw(name.into());
1783 unsafe {
1784 BNBinaryViewExportObjectToTypeLibrary(
1785 self.as_ref().handle,
1786 lib.as_raw(),
1787 &mut raw_name,
1788 type_obj.handle,
1789 )
1790 }
1791 QualifiedName::free_raw(raw_name);
1792 }
1793
1794 /// Gives you details of which type library and name was used to determine
1795 /// the type of a symbol at a given address

Callers

nothing calls this directly

Implementers 1

binary_view.rsrust/src/binary_view.rs

Calls 2

as_refMethod · 0.45
as_rawMethod · 0.45

Tested by

no test coverage detected