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

Method remove_component

rust/src/component.rs:124–130  ·  view source on GitHub ↗

Remove a component from the current component, moving it to the root. This function has no effect when used from the root component. Use `BinaryView.remove_component` to Remove a component from the tree entirely.

(&self, component: &Component)

Source from the content-addressed store, hash-verified

122 /// This function has no effect when used from the root component.
123 /// Use `BinaryView.remove_component` to Remove a component from the tree entirely.
124 pub fn remove_component(&self, component: &Component) -> bool {
125 self.view()
126 .unwrap()
127 .root_component()
128 .unwrap()
129 .add_component(component)
130 }
131
132 /// Add data variable to this component.
133 pub fn add_data_variable(&self, data_variable: &DataVariable) -> bool {

Callers

nothing calls this directly

Calls 3

add_componentMethod · 0.45
root_componentMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected